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:
Steven Masley
2026-03-25 14:09:25 -05:00
committed by GitHub
parent cf955b0e43
commit 9d5b7f4579
+1 -1
View File
@@ -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)
})
}