You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2023/08/17 08:11:44 UTC
[pulsar] branch branch-3.0 updated: [fix][test] Close the resource after the test (#20778)
This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 24877e0b1bd [fix][test] Close the resource after the test (#20778)
24877e0b1bd is described below
commit 24877e0b1bd3cad41291e5dbb3a159bb86e95d44
Author: Jiwei Guo <te...@apache.org>
AuthorDate: Tue Jul 11 19:20:44 2023 +0800
[fix][test] Close the resource after the test (#20778)
---
.../pulsar/tests/integration/loadbalance/ExtensibleLoadManagerTest.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/loadbalance/ExtensibleLoadManagerTest.java b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/loadbalance/ExtensibleLoadManagerTest.java
index 51dc9d7dd72..057039edc3b 100644
--- a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/loadbalance/ExtensibleLoadManagerTest.java
+++ b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/loadbalance/ExtensibleLoadManagerTest.java
@@ -163,6 +163,8 @@ public class ExtensibleLoadManagerTest extends TestRetrySupport {
for (int i = 1; i < admins.size(); i++) {
assertEquals(result.get(i - 1), result.get(i));
}
+ admins.forEach(a -> a.close());
+ executor.shutdown();
}
@Test(timeOut = 30 * 1000)