Skip to content

Commit 727cf44

Browse files
Change the timeout for spark startup and waitForStopped, also wiremock will use dynamic ports
1 parent a609098 commit 727cf44

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/java/io/cdap/plugin/http/etl/BaseHttpBatchSourceETLTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public abstract class BaseHttpBatchSourceETLTest extends HydratorTestBase {
6464
public TestName name = new TestName();
6565

6666
@Rule
67-
public WireMockRule wireMockRule = new WireMockRule();
67+
public WireMockRule wireMockRule = new WireMockRule(0);
6868

6969
private static final ArtifactSummary APP_ARTIFACT = new ArtifactSummary("data-pipeline", "3.2.0");
7070

src/test/java/io/cdap/plugin/http/etl/HttpSourceETLTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public abstract class HttpSourceETLTest extends HydratorTestBase {
4242
@Rule
4343
public TestName testName = new TestName();
4444
@Rule
45-
public WireMockRule wireMockRule = new WireMockRule();
45+
public WireMockRule wireMockRule = new WireMockRule(0);
4646

4747
@Test
4848
public void testIncrementAnIndex() throws Exception {

src/test/java/io/cdap/plugin/http/etl/HttpStreamingSourceETLTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private ProgramManager startPipeline(Map<String, String> properties) throws Exce
100100

101101
ProgramManager programManager =
102102
deployETL(sourceConfig, sinkConfig, "HTTPStreaming_" + testName.getMethodName());
103-
programManager.startAndWaitForRun(ProgramRunStatus.RUNNING, 30, TimeUnit.SECONDS);
103+
programManager.startAndWaitForRun(ProgramRunStatus.RUNNING, 120, TimeUnit.SECONDS);
104104

105105
return programManager;
106106
}
@@ -121,7 +121,7 @@ private List<StructuredRecord> waitForRecords(ProgramManager programManager,
121121
}));
122122

123123
programManager.stop();
124-
programManager.waitForStopped(10, TimeUnit.SECONDS);
124+
programManager.waitForStopped(120, TimeUnit.SECONDS);
125125

126126
outputManager.get();
127127
return MockSink.readOutput(outputManager);

0 commit comments

Comments
 (0)