Skip to content

Commit e89dfdb

Browse files
DivyanshIITBRongtongJin
authored andcommitted
Fix unstable test: BrokerOuterAPITest.test_needRegister_timeout (#9250)
1 parent 0a21046 commit e89dfdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)