Skip to content

Commit

Permalink
Avoid SyncOperationTimeoutTest spamming the test server (#2292)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns authored Oct 24, 2024
1 parent 3410677 commit 93e30d7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ public OperationHandler<String, String> operation() {
// Implemented inline
return OperationHandler.sync(
(ctx, details, name) -> {
// Simulate a long running operation
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
throw new RuntimeException("failed to call operation");
});
}
Expand Down

0 comments on commit 93e30d7

Please sign in to comment.