We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentd6410d9 commit24c0e1cCopy full SHA for 24c0e1c
cli/server_test.go
@@ -93,8 +93,10 @@ func TestServer(t *testing.T) {
93
parsed,err:=url.Parse(accessURL)
94
require.NoError(t,err)
95
// Verify that credentials were output to the terminal.
96
-assert.Contains(t,stdoutBuf.String(),"email: admin@coder.com","unexpected output")
97
-assert.Contains(t,stdoutBuf.String(),"password: password","unexpected output")
+wantEmail:="email: admin@coder.com"
+wantPassword:="password: password"
98
+assert.Contains(t,stdoutBuf.String(),wantEmail,"expected output %q; got no match",wantEmail)
99
+assert.Contains(t,stdoutBuf.String(),wantPassword,"expected output %q; got no match",wantPassword)
100
client:=codersdk.New(parsed)
101
client.SessionToken=token
102
_,err=client.User(ctx,codersdk.Me)