@@ -87,12 +87,9 @@ func TestUserShow(t *testing.T) {
8787
8888 t .Run ("Table" , func (t * testing.T ) {
8989 t .Parallel ()
90- ctx := context .Background ()
9190 client := coderdtest .New (t , nil )
9291 admin := coderdtest .CreateFirstUser (t , client )
93- other := coderdtest .CreateAnotherUser (t , client , admin .OrganizationID )
94- otherUser , err := other .User (ctx , codersdk .Me )
95- require .NoError (t , err , "fetch other user" )
92+ _ , otherUser := coderdtest .CreateAnotherUser (t , client , admin .OrganizationID )
9693 cmd , root := clitest .New (t , "users" , "show" , otherUser .Username )
9794 clitest .SetupConfig (t , client , root )
9895 doneChan := make (chan struct {})
@@ -114,7 +111,7 @@ func TestUserShow(t *testing.T) {
114111 ctx := context .Background ()
115112 client := coderdtest .New (t , nil )
116113 admin := coderdtest .CreateFirstUser (t , client )
117- other := coderdtest .CreateAnotherUser (t , client , admin .OrganizationID )
114+ other , _ := coderdtest .CreateAnotherUser (t , client , admin .OrganizationID )
118115 otherUser , err := other .User (ctx , codersdk .Me )
119116 require .NoError (t , err , "fetch other user" )
120117 cmd , root := clitest .New (t , "users" , "show" , otherUser .Username , "-o" , "json" )
0 commit comments