Increase "long process" delay in the LockRequestHandlerAdviceTests

This commit is contained in:
Artem Bilan
2025-03-27 13:27:10 -04:00
parent 6a1511cb57
commit 2cc9686c84

View File

@@ -125,7 +125,7 @@ public class LockRequestHandlerAdviceTests {
@ServiceActivator(inputChannel = "inputChannel", adviceChain = "lockRequestHandlerAdvice")
String handleWithDelay(String payload) throws InterruptedException {
int currentCount = this.counter.incrementAndGet();
Thread.sleep("longer_process".equals(payload) ? 2000 : 500);
Thread.sleep("longer_process".equals(payload) ? 5000 : 500);
try {
return payload + "-" + currentCount;
}