Skip to content

Commit

Permalink
[ML] Wait for green after opening job in NetworkDisruptionIT (#50232)
Browse files Browse the repository at this point in the history
Closes #49908
  • Loading branch information
davidkyle authored Dec 16, 2019
1 parent 044139a commit 736e9f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public void testJobRelocation() throws Exception {
Job.Builder job = createJob("relocation-job", new ByteSizeValue(2, ByteSizeUnit.MB));
PutJobAction.Request putJobRequest = new PutJobAction.Request(job);
client().execute(PutJobAction.INSTANCE, putJobRequest).actionGet();
ensureGreen();

OpenJobAction.Request openJobRequest = new OpenJobAction.Request(job.getId());
AcknowledgedResponse openJobResponse = client().execute(OpenJobAction.INSTANCE, openJobRequest).actionGet();
assertTrue(openJobResponse.isAcknowledged());
ensureGreen();

// Record which node the job starts off on
String origJobNode = awaitJobOpenedAndAssigned(job.getId(), null);
Expand Down

0 comments on commit 736e9f9

Please sign in to comment.