Skip to content

Commit eff5ede

Browse files
committed
fix(auth): Fixed test to use error message prefix
1 parent a6fa019 commit eff5ede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration/auth/user_mgt_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,8 +1305,8 @@ func TestAuthErrorParse(t *testing.T) {
13051305
URL: invalidContinueURL,
13061306
HandleCodeInApp: false,
13071307
})
1308-
want := "domain of the continue url is not whitelisted: Domain not whitelisted by project"
1309-
if err == nil || !auth.IsUnauthorizedContinueURI(err) || err.Error() != want {
1308+
want := "domain of the continue url is not whitelisted: "
1309+
if err == nil || !auth.IsUnauthorizedContinueURI(err) || !strings.HasPrefix(err.Error(), want) {
13101310
t.Errorf("EmailSignInLink() expected error, got: %s, want: %s", err, want)
13111311
}
13121312
}

0 commit comments

Comments
 (0)