Skip to content

Commit

Permalink
HDDS-11005. Intermittent failure in TestEndPoint#testRegisterRpcTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaskriya committed Jun 12, 2024
1 parent 532bd64 commit d35aec9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public void testRegisterRpcTimeout() throws Exception {
final long tolerance = 900;
scmServerImpl.setRpcResponseDelay(2500);
long start = Time.monotonicNow();
registerTaskHelper(serverAddress, 1000, false).close();
registerTaskHelper(serverAddress, (int) rpcTimeout, false).close();
long end = Time.monotonicNow();
scmServerImpl.setRpcResponseDelay(0);
assertThat(end - start).isLessThanOrEqualTo(rpcTimeout + tolerance);
Expand Down

0 comments on commit d35aec9

Please sign in to comment.