Skip to content

Commit 93e30d7

Browse files
Avoid SyncOperationTimeoutTest spamming the test server (#2292)
1 parent 3410677 commit 93e30d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

temporal-sdk/src/test/java/io/temporal/workflow/nexus/SyncOperationTimeoutTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ public OperationHandler<String, String> operation() {
7979
// Implemented inline
8080
return OperationHandler.sync(
8181
(ctx, details, name) -> {
82+
// Simulate a long running operation
83+
try {
84+
Thread.sleep(2000);
85+
} catch (InterruptedException e) {
86+
throw new RuntimeException(e);
87+
}
8288
throw new RuntimeException("failed to call operation");
8389
});
8490
}

0 commit comments

Comments
 (0)