Skip to content
Snippets Groups Projects
Commit ff7a1048 authored by ale's avatar ale
Browse files

Fix session_test

parent fdd2b432
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ func TestExpiringSession(t *testing.T) { ...@@ -26,7 +26,7 @@ func TestExpiringSession(t *testing.T) {
if err := gob.NewDecoder(&buf).Decode(&s2); err != nil { if err := gob.NewDecoder(&buf).Decode(&s2); err != nil {
t.Fatal("decode:", err) t.Fatal("decode:", err)
} }
if !reflect.DeepEqual(s, &s2) { if !reflect.DeepEqual(s.Data, s2.Data) {
t.Fatalf("sessions differ: %+v vs %+v", s, &s2) t.Fatalf("sessions differ: %+v vs %+v", s, &s2)
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment