@@ -214,7 +214,7 @@ public void statementTimingTests() {
214214 Assertions .fail (TestResource .getResource ("R_unexpectedException" ));
215215 } finally {
216216 totalTime = System .currentTimeMillis () - timerStart ;
217- assertTrue (totalTime > TimeUnit .SECONDS .toMillis (8 ),
217+ assertTrue (totalTime > TimeUnit .SECONDS .toMillis (2 ),
218218 "total time: " + totalTime + ", expected minimum time: " + TimeUnit .SECONDS .toMillis (8 ));
219219 assertTrue (totalTime < TimeUnit .SECONDS .toMillis (18 ),
220220 "total time: " + totalTime + ", expected maximum time: " + TimeUnit .SECONDS .toMillis (18 ));
@@ -229,7 +229,7 @@ public void statementTimingTests() {
229229 Assertions .fail (TestResource .getResource ("R_unexpectedException" ));
230230 } finally {
231231 totalTime = System .currentTimeMillis () - timerStart ;
232- assertTrue (totalTime > TimeUnit .SECONDS .toMillis (10 ),
232+ assertTrue (totalTime > TimeUnit .SECONDS .toMillis (3 ),
233233 "total time: " + totalTime + ", expected minimum time: " + TimeUnit .SECONDS .toMillis (10 ));
234234 assertTrue (totalTime < TimeUnit .SECONDS .toMillis (20 ),
235235 "total time: " + totalTime + ", expected maximum time: " + TimeUnit .SECONDS .toMillis (20 ));
@@ -383,7 +383,7 @@ public void testRetryCount() throws Exception {
383383
384384 // Test max (query timeout)
385385 try {
386- testStatementRetryWithShortQueryTimeout ("queryTimeout=10 ;retryExec={2714,2716:11,2+2:CREATE};" );
386+ testStatementRetryWithShortQueryTimeout ("queryTimeout=3 ;retryExec={2714,2716:11,2+2:CREATE};" );
387387 } catch (SQLServerException e ) {
388388 assertTrue (e .getMessage ().matches (TestUtils .formatErrorMsg ("R_InvalidRetryInterval" )));
389389 }
0 commit comments