Skip to content

Commit 35be3ef

Browse files
committed
bump version and fix unit test
1 parent 12d82dd commit 35be3ef

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<groupId>io.cdap.plugin</groupId>
2424
<artifactId>dynamic-spark</artifactId>
25-
<version>2.2.1</version>
25+
<version>2.2.2</version>
2626

2727
<properties>
2828
<!-- properties for script build step that creates the config files for the artifacts -->

src/test/java/io/cdap/plugin/spark/dynamic/ScalaSparkTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ public void testScalaProgram() throws Exception {
161161
Map<String, String> runtimeArgs = new HashMap<>(RuntimeArguments.addScope(Scope.DATASET, "text", inputArgs));
162162

163163
WorkflowManager workflowManager = appManager.getWorkflowManager(SmartWorkflow.NAME);
164-
workflowManager.start(runtimeArgs);
165-
workflowManager.waitForRun(ProgramRunStatus.COMPLETED, 5, TimeUnit.MINUTES);
164+
workflowManager.startAndWaitForRun(runtimeArgs, ProgramRunStatus.COMPLETED, 5, TimeUnit.MINUTES);
166165

167166
// Validate the result
168167
KeyValueTable kvTable = this.<KeyValueTable>getDataset("kvTable").get();

0 commit comments

Comments
 (0)