mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
test: assert on user id, not entire user (#23632)
User struct has "LastSeen" field which can change during the test Replaces https://github.com/coder/coder/pull/23622
This commit is contained in:
@@ -1714,7 +1714,7 @@ func TestGetUser(t *testing.T) {
|
||||
|
||||
user, err := client.User(ctx, exp.Username)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, exp, user)
|
||||
require.Equal(t, exp.ID, user.ID)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user