mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-18 00:58:08 +02:00
use NotSame
This commit is contained in:
parent
3d43939741
commit
0b147927c3
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ func TestDataStore(t *testing.T) {
|
||||||
ds.putSession(s)
|
ds.putSession(s)
|
||||||
s1, u1 := ds.getSessionAndUser("S1")
|
s1, u1 := ds.getSessionAndUser("S1")
|
||||||
assert.NotNil(t, s1, "should return a non-nil session")
|
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.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")
|
assert.Nil(t, u1, "should return a nil user when only the session exists")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue