[Transform] fix sporadic test failure due to unavailable notif… (#54939)

move no initializing shards check before dumping audit messages

fixes #54810
This commit is contained in:
Hendrik Muhs 2020-04-09 07:23:24 +02:00
parent afa3467957
commit 223fbb2ae7
1 changed files with 1 additions and 1 deletions

View File

@ -380,9 +380,9 @@ public abstract class TransformRestTestCase extends ESRestTestCase {
@After
public void waitForTransform() throws Exception {
ensureNoInitializingShards();
logAudits();
if (preserveClusterUponCompletion() == false) {
ensureNoInitializingShards();
wipeTransforms();
waitForPendingTransformTasks();
}