diff --git a/pkg/cmd/auth/login/login_test.go b/pkg/cmd/auth/login/login_test.go index 53439ef8e..0abfeb7e3 100644 --- a/pkg/cmd/auth/login/login_test.go +++ b/pkg/cmd/auth/login/login_test.go @@ -439,7 +439,7 @@ func Test_loginRun_Survey(t *testing.T) { if tt.wantErrOut == nil { assert.Equal(t, "", stderr.String()) } else { - assert.True(t, tt.wantErrOut.MatchString(stderr.String())) + assert.Regexp(t, tt.wantErrOut, stderr.String()) } reg.Verify(t) })