Skip to content

Commit

Permalink
SNOW-950923 Flaky test fix (#870)
Browse files Browse the repository at this point in the history
### Description
Timeout delta increased to verify Login Request Timeout falls into
expected range.

### Checklist
- [x] Code compiles correctly
- [x] Code is formatted according to [Coding
Conventions](../CodingConventions.md)
- [x] Created tests which fail without the change (if possible)
- [x] All tests passing (`dotnet test`)
- [x] Extended the README / documentation, if necessary
- [x] Provide JIRA issue id (if possible) or GitHub issue id in PR name
  • Loading branch information
sfc-gh-mhofman committed Feb 21, 2024
1 parent fd193e1 commit 22871b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public void TestLoginTimeout()
((SnowflakeDbException)e.InnerException).ErrorCode);
}
stopwatch.Stop();
int delta = 10; // in case server time slower.
int delta = 15; // in case server time slower.

// Should timeout before the defined timeout plus 1 (buffer time)
Assert.LessOrEqual(stopwatch.ElapsedMilliseconds, (timeoutSec + 1) * 1000);
Expand Down

0 comments on commit 22871b5

Please sign in to comment.