X Tutup
Skip to content

Commit 793e866

Browse files
committed
Using assert.Regexp for testing stderr's content
1 parent 81caade commit 793e866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/auth/login/login_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ func Test_loginRun_Survey(t *testing.T) {
439439
if tt.wantErrOut == nil {
440440
assert.Equal(t, "", stderr.String())
441441
} else {
442-
assert.True(t, tt.wantErrOut.MatchString(stderr.String()))
442+
assert.Regexp(t, tt.wantErrOut, stderr.String())
443443
}
444444
reg.Verify(t)
445445
})

0 commit comments

Comments
 (0)
X Tutup