Skip to content

Commit

Permalink
logging for flaky tc
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pcyrek committed Dec 16, 2024
1 parent 26d3ff2 commit ff49f15
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions authexternalbrowser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ func TestAuthenticationTimeout(t *testing.T) {
account := "testaccount"
user := "u"
password := "p"
timeout := 0 * time.Second
timeout := 1 * time.Second
errMsg := "authentication timed out"
sr := &snowflakeRestful{
Protocol: "https",
Host: "abc.com",
Expand All @@ -131,8 +132,8 @@ func TestAuthenticationTimeout(t *testing.T) {
TokenAccessor: getSimpleTokenAccessor(),
}
_, _, err := authenticateByExternalBrowser(context.Background(), sr, authenticator, application, account, user, password, timeout, ConfigBoolTrue)
if err.Error() != "authentication timed out" {
t.Fatal("should have timed out")
if err.Error() != errMsg {
t.Fatal("Expected", errMsg, "but got:", err.Error())
}
}

Expand Down

0 comments on commit ff49f15

Please sign in to comment.