Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,12 @@ protected static void deleteTransform(String transformId) throws IOException {
}

@After
public void waitForDataFrame() throws Exception {
wipeTransforms();
waitForPendingDataFrameTasks();
public void waitForTransform() throws Exception {
if (preserveClusterUponCompletion() == false) {
ensureNoInitializingShards();
wipeTransforms();
waitForPendingTransformTasks();
}
}

@AfterClass
Expand Down Expand Up @@ -416,7 +419,7 @@ public void wipeTransforms() throws IOException {
}
}

protected static void waitForPendingDataFrameTasks() throws Exception {
protected static void waitForPendingTransformTasks() throws Exception {
waitForPendingTasks(adminClient(), taskName -> taskName.startsWith(TransformField.TASK_NAME) == false);
}

Expand Down