This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 73cc537 Fix compilation issue on CLITest (#2454)
73cc537 is described below
commit 73cc53757205f81eff9a43535bf26eefb93a490b
Author: Sijie Guo <[email protected]>
AuthorDate: Mon Aug 27 23:56:13 2018 -0700
Fix compilation issue on CLITest (#2454)
### Motivation
#2182 is cherry-picked into branch 2.1. But some of integration test
changes are not cherry-picked back.
So the compilation is broken
### Changes
Fix the compilation issue on CLITest
---
.../test/java/org/apache/pulsar/tests/integration/cli/CLITest.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/tests/integration/semantics/src/test/java/org/apache/pulsar/tests/integration/cli/CLITest.java
b/tests/integration/semantics/src/test/java/org/apache/pulsar/tests/integration/cli/CLITest.java
index 0f2163a..d2cf6cf 100644
---
a/tests/integration/semantics/src/test/java/org/apache/pulsar/tests/integration/cli/CLITest.java
+++
b/tests/integration/semantics/src/test/java/org/apache/pulsar/tests/integration/cli/CLITest.java
@@ -167,7 +167,7 @@ public class CLITest extends PulsarClusterTestBase {
@Test
public void testSetInfiniteRetention() throws Exception {
- ContainerExecResult result;
+ ExecResult result;
String namespace = "get-and-set-retention" + randomName(8);
pulsarCluster.createNamespace(namespace);
@@ -179,7 +179,6 @@ public class CLITest extends PulsarClusterTestBase {
};
result = pulsarCluster.runAdminCommandOnAnyBroker(setCommand);
- assertEquals(0, result.getExitCode());
assertTrue(
result.getStdout().isEmpty(),
result.getStdout()
@@ -194,7 +193,6 @@ public class CLITest extends PulsarClusterTestBase {
};
result = pulsarCluster.runAdminCommandOnAnyBroker(getCommand);
- assertEquals(0, result.getExitCode());
assertTrue(
result.getStdout().contains("\"retentionTimeInMinutes\" : -1"),
result.getStdout());