This is an automated email from the ASF dual-hosted git repository.

technoboy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 4e2ba4b9d2a [fix][test] Close the resource after the test (#20778)
4e2ba4b9d2a is described below

commit 4e2ba4b9d2aff24add3016c48fe72457518444aa
Author: Jiwei Guo <[email protected]>
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)

Reply via email to