Skip to content

Commit

Permalink
[TEST] Rename data-frames to transform in docs test cleanup (#47016)
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.

Fixes #43271
Fixes #47012
  • Loading branch information
droberts195 authored Sep 24, 2019
1 parent 7935d88 commit 5051a83
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 5051a83

Please sign in to comment.