Skip to content

Commit 94dd2e7

Browse files
authored
Fix unstable test: BrokerOuterAPITest.test_needRegister_timeout (#9250)
1 parent 054f910 commit 94dd2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

broker/src/test/java/org/apache/rocketmq/broker/BrokerOuterAPITest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public RemotingCommand answer(InvocationOnMock invocation) throws Throwable {
154154
} else if (invocation.getArgument(0) == nameserver2) {
155155
return buildResponse(Boolean.FALSE);
156156
} else if (invocation.getArgument(0) == nameserver3) {
157-
TimeUnit.MILLISECONDS.sleep(timeOut + 20);
157+
TimeUnit.MILLISECONDS.sleep(timeOut + 100); // Increase sleep time to force timeout
158158
return buildResponse(Boolean.TRUE);
159159
}
160160
return buildResponse(Boolean.TRUE);

0 commit comments

Comments
 (0)