Skip to content

Commit 2da65d4

Browse files
committed
Remove invalid tests
1 parent bde1410 commit 2da65d4

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

pulsar-client/src/test/java/org/apache/pulsar/client/impl/BinaryProtoLookupServiceTest.java

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
import org.apache.pulsar.common.partition.PartitionedTopicMetadata;
6969
import org.apache.pulsar.common.protocol.Commands;
7070
import org.apache.pulsar.common.topics.TopicList;
71-
import org.awaitility.Awaitility;
7271
import org.testng.annotations.AfterMethod;
7372
import org.testng.annotations.BeforeMethod;
7473
import org.testng.annotations.Test;
@@ -178,37 +177,6 @@ public void maxLookupRedirectsTest3() throws Exception {
178177
}
179178
}
180179

181-
@Test
182-
public void testCommandUnChangedInDifferentThread() throws Exception {
183-
BaseCommand successCommand = Commands.newSuccessCommand(10000);
184-
lookup.getBroker(topicName).get();
185-
assertEquals(successCommand.getType(), Type.SUCCESS);
186-
lookup.getPartitionedTopicMetadata(topicName, true, true).get();
187-
assertEquals(successCommand.getType(), Type.SUCCESS);
188-
}
189-
190-
@Test
191-
public void testCommandChangedInSameThread() throws Exception {
192-
AtomicReference<BaseCommand> successCommand = new AtomicReference<>();
193-
internalExecutor.execute(() -> successCommand.set(Commands.newSuccessCommand(10000)));
194-
Awaitility.await().untilAsserted(() -> {
195-
BaseCommand baseCommand = successCommand.get();
196-
assertNotNull(baseCommand);
197-
assertEquals(baseCommand.getType(), Type.SUCCESS);
198-
});
199-
lookup.getBroker(topicName).get();
200-
assertEquals(successCommand.get().getType(), Type.LOOKUP);
201-
202-
internalExecutor.execute(() -> successCommand.set(Commands.newSuccessCommand(10000)));
203-
Awaitility.await().untilAsserted(() -> {
204-
BaseCommand baseCommand = successCommand.get();
205-
assertNotNull(baseCommand);
206-
assertEquals(baseCommand.getType(), Type.SUCCESS);
207-
});
208-
lookup.getPartitionedTopicMetadata(topicName, true, true).get();
209-
assertEquals(successCommand.get().getType(), Type.PARTITIONED_METADATA);
210-
}
211-
212180
private static LookupDataResult createLookupDataResult(String brokerUrl, boolean redirect) throws Exception {
213181
LookupDataResult lookupResult = new LookupDataResult(-1);
214182

0 commit comments

Comments
 (0)