315157973 commented on a change in pull request #11115:
URL: https://github.com/apache/pulsar/pull/11115#discussion_r659249726
##########
File path:
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTest.java
##########
@@ -615,18 +615,18 @@ public void testInvalidDynamicConfigContentInZK() throws
Exception {
*
* @throws Exception
*/
- @Test
+ @Test(timeOut = 30000)
public void testUpdateDynamicLocalConfiguration() throws Exception {
// (1) try to update dynamic field
final long initValue = 30000;
final long shutdownTime = 10;
pulsar.getConfiguration().setBrokerShutdownTimeoutMs(initValue);
// update configuration
admin.brokers().updateDynamicConfiguration("brokerShutdownTimeoutMs",
Long.toString(shutdownTime));
- Awaitility.await().until(()
- -> pulsar.getConfiguration().getBrokerShutdownTimeoutMs() !=
initValue);
// verify value is updated
- assertEquals(pulsar.getConfiguration().getBrokerShutdownTimeoutMs(),
shutdownTime);
+ Awaitility.waitAtMost(30, TimeUnit.SECONDS).untilAsserted(() -> {
Review comment:
Why does the delay of zk watch exceed 10 seconds?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]