use NotSame

This commit is contained in:
Caleb Doxsey 2024-05-01 08:50:36 -06:00
parent 3d43939741
commit 0b147927c3

View file

@ -27,7 +27,7 @@ func TestDataStore(t *testing.T) {
ds.putSession(s)
s1, u1 := ds.getSessionAndUser("S1")
assert.NotNil(t, s1, "should return a non-nil session")
assert.False(t, s == s1, "should return different pointers")
assert.NotSame(t, s, s1, "should return different pointers")
assert.Empty(t, cmp.Diff(s, s1, protocmp.Transform()), "should be the same as was entered")
assert.Nil(t, u1, "should return a nil user when only the session exists")