@@ -33,7 +33,7 @@ func TestUserStatus(t *testing.T) {
33
33
})
34
34
35
35
t .Run ("StatusOther" , func (t * testing.T ) {
36
- require .Equal (t , otherUser . Status , codersdk . UserStatusActive , "start as active" )
36
+ require .Equal (t , codersdk . UserStatusActive , otherUser . Status , "start as active" )
37
37
38
38
cmd , root := clitest .New (t , "users" , "suspend" , otherUser .Username )
39
39
clitest .SetupConfig (t , client , root )
@@ -45,7 +45,7 @@ func TestUserStatus(t *testing.T) {
45
45
// Check the user status
46
46
otherUser , err = client .User (context .Background (), otherUser .Username )
47
47
require .NoError (t , err , "fetch suspended user" )
48
- require .Equal (t , otherUser . Status , codersdk . UserStatusSuspended , "suspended user" )
48
+ require .Equal (t , codersdk . UserStatusSuspended , otherUser . Status , "suspended user" )
49
49
50
50
// Set back to active. Try using a uuid as well
51
51
cmd , root = clitest .New (t , "users" , "activate" , otherUser .ID .String ())
@@ -58,6 +58,6 @@ func TestUserStatus(t *testing.T) {
58
58
// Check the user status
59
59
otherUser , err = client .User (context .Background (), otherUser .ID .String ())
60
60
require .NoError (t , err , "fetch active user" )
61
- require .Equal (t , otherUser . Status , codersdk . UserStatusActive , "active user" )
61
+ require .Equal (t , codersdk . UserStatusActive , otherUser . Status , "active user" )
62
62
})
63
63
}
0 commit comments