Skip to content

Commit

Permalink
Make unit test a little faster
Browse files Browse the repository at this point in the history
  • Loading branch information
mcweba committed Jan 12, 2024
1 parent c8af520 commit fc79cca
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ public void deployRedisques(TestContext context) {
new QueueConfiguration().withPattern("stat.*").withRetryIntervals(1, 2, 3, 5)
.withEnqueueDelayMillisPerSize(5).withEnqueueMaxDelayMillis(100)
))
.queueSpeedIntervalSec(4)
.dequeueStatisticReportIntervalSec(5)
.queueSpeedIntervalSec(2)
.dequeueStatisticReportIntervalSec(3)
.build()
.asJsonObject();

Expand Down Expand Up @@ -1892,7 +1892,7 @@ public void getMonitorInformation(TestContext context) throws JsonProcessingExce

// wait 5.1 second, because the update time is 5 seconds
try {
Thread.sleep(5100);
Thread.sleep(3100);
} catch (InterruptedException iex) {
// ignore
}
Expand All @@ -1913,7 +1913,7 @@ public void getMonitorInformation(TestContext context) throws JsonProcessingExce
verifyResponse(context, expectedStaticJson, receivedJson);
// wait 5.1 second, because the update time is 5 seconds
try {
Thread.sleep(5100);
Thread.sleep(3100);
} catch (InterruptedException iex) {
// ignore
}
Expand All @@ -1939,7 +1939,7 @@ public void getMonitorInformation(TestContext context) throws JsonProcessingExce
verifyResponse(context, expectedStaticJson, receivedJson);
// wait 5.1 second, because the update time is 5 seconds
try {
Thread.sleep(5100);
Thread.sleep(3100);
} catch (InterruptedException iex) {
// ignore
}
Expand All @@ -1961,7 +1961,7 @@ public void getMonitorInformation(TestContext context) throws JsonProcessingExce
verifyResponse(context, expectedStaticJson, receivedJson);
// wait 5.1 second, because the update time is 5 seconds
try {
Thread.sleep(5100);
Thread.sleep(3100);
} catch (InterruptedException iex) {
// ignore
}
Expand All @@ -1987,7 +1987,7 @@ public void getMonitorInformation(TestContext context) throws JsonProcessingExce
verifyResponse(context, expectedStaticJson, receivedJson);
// wait 5.1 second, because the update time is 5 seconds
try {
Thread.sleep(5100);
Thread.sleep(3100);
} catch (InterruptedException iex) {
// ignore
}
Expand Down

0 comments on commit fc79cca

Please sign in to comment.