Skip to content

Commit 7f26873

Browse files
committed
Fixed intermittent test failure in retryStatsTest
1 parent a74b097 commit 7f26873

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

driver/src/test/java/oracle/nosql/driver/RateLimiterTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void basicExternalPercentTest() throws Exception {
6767

6868
@Test
6969
public void retryStatsTest() throws Exception {
70-
testRetryStats(500, 2000, 2000, 10);
70+
testRetryStats(500, 500, 500, 10);
7171
}
7272

7373
private void testRetryStats(int maxRows,
@@ -446,6 +446,10 @@ private void doRateLimitedQueries(int numSeconds,
446446
fail("Expected to get internal retries, but got none");
447447
}
448448

449+
if (skipAllLimiting == true) {
450+
return;
451+
}
452+
449453
int expectedRUs = (int)(readLimit * usePercent);
450454

451455
/* for very small expected amounts, just verify within 1 RU */

0 commit comments

Comments
 (0)