Skip to content

Commit

Permalink
Timing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffery-Wasty committed Sep 20, 2024
1 parent 34cfa4b commit df67a98
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public void statementTimingTests() {
Assertions.fail(TestResource.getResource("R_unexpectedException"));
} finally {
totalTime = System.currentTimeMillis() - timerStart;
assertTrue(totalTime > TimeUnit.SECONDS.toMillis(8),
assertTrue(totalTime > TimeUnit.SECONDS.toMillis(2),
"total time: " + totalTime + ", expected minimum time: " + TimeUnit.SECONDS.toMillis(8));
assertTrue(totalTime < TimeUnit.SECONDS.toMillis(18),
"total time: " + totalTime + ", expected maximum time: " + TimeUnit.SECONDS.toMillis(18));
Expand All @@ -229,7 +229,7 @@ public void statementTimingTests() {
Assertions.fail(TestResource.getResource("R_unexpectedException"));
} finally {
totalTime = System.currentTimeMillis() - timerStart;
assertTrue(totalTime > TimeUnit.SECONDS.toMillis(10),
assertTrue(totalTime > TimeUnit.SECONDS.toMillis(3),
"total time: " + totalTime + ", expected minimum time: " + TimeUnit.SECONDS.toMillis(10));
assertTrue(totalTime < TimeUnit.SECONDS.toMillis(20),
"total time: " + totalTime + ", expected maximum time: " + TimeUnit.SECONDS.toMillis(20));
Expand Down Expand Up @@ -383,7 +383,7 @@ public void testRetryCount() throws Exception {

// Test max (query timeout)
try {
testStatementRetryWithShortQueryTimeout("queryTimeout=10;retryExec={2714,2716:11,2+2:CREATE};");
testStatementRetryWithShortQueryTimeout("queryTimeout=3;retryExec={2714,2716:11,2+2:CREATE};");
} catch (SQLServerException e) {
assertTrue(e.getMessage().matches(TestUtils.formatErrorMsg("R_InvalidRetryInterval")));
}
Expand Down

0 comments on commit df67a98

Please sign in to comment.