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

lhotari 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 158960a7e2a [fix][test] Fix flaky 
AuthorizationTest.testGetListWithGetBundleOp (#22713)
158960a7e2a is described below

commit 158960a7e2ad20dc084294f3b85ba4f409659cbb
Author: Lari Hotari <lhot...@users.noreply.github.com>
AuthorDate: Fri May 17 17:17:17 2024 +0300

    [fix][test] Fix flaky AuthorizationTest.testGetListWithGetBundleOp (#22713)
    
    Co-authored-by: Jiwe Guo <techno...@apache.org>
---
 .../src/test/java/org/apache/pulsar/broker/auth/AuthorizationTest.java  | 2 --
 1 file changed, 2 deletions(-)

diff --git 
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/AuthorizationTest.java
 
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/AuthorizationTest.java
index 6c913d42908..6b0ff3333bb 100644
--- 
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/AuthorizationTest.java
+++ 
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/AuthorizationTest.java
@@ -18,7 +18,6 @@
  */
 package org.apache.pulsar.broker.auth;
 
-import static org.mockito.Mockito.when;
 import static org.testng.Assert.assertFalse;
 import static org.testng.Assert.assertTrue;
 import static org.testng.Assert.fail;
@@ -322,7 +321,6 @@ public class AuthorizationTest extends 
MockedPulsarServiceBaseTest {
                         : brokerUrlTls.toString())
                 .authentication(new MockAuthentication("pass.pass2"))
                 .build();
-        when(pulsar.getAdminClient()).thenReturn(admin2);
         Assert.assertEquals(admin2.topics().getList(namespaceV1, 
TopicDomain.non_persistent).size(), 0);
         Assert.assertEquals(admin2.topics().getList(namespaceV2, 
TopicDomain.non_persistent).size(), 0);
     }

Reply via email to