Skip to content

Commit

Permalink
[TEST] Rename data-frames to transform in docs test cleanup (#47082)
Browse files Browse the repository at this point in the history
The renaming of the tests in #46760 caused the
cleanup between tests to be skipped.

Backport of #47016
  • Loading branch information
droberts195 committed Sep 25, 2019
1 parent 7fcaae9 commit b28fd92
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected ClientYamlTestClient initClientYamlTestClient(

@After
public void cleanup() throws Exception {
if (isMachineLearningTest() || isDataFrameTest()) {
if (isMachineLearningTest() || isTransformTest()) {
ESRestTestCase.waitForPendingTasks(adminClient());
}
}
Expand All @@ -111,9 +111,9 @@ protected boolean isMachineLearningTest() {
return testName != null && (testName.contains("/ml/") || testName.contains("\\ml\\"));
}

protected boolean isDataFrameTest() {
protected boolean isTransformTest() {
String testName = getTestName();
return testName != null && (testName.contains("/data-frames/") || testName.contains("\\data-frames\\"));
return testName != null && (testName.contains("/transform/") || testName.contains("\\transform\\"));
}

/**
Expand Down

0 comments on commit b28fd92

Please sign in to comment.