Skip to content

Commit 736e9f9

Browse files
authored
[ML] Wait for green after opening job in NetworkDisruptionIT (#50232)
Closes #49908
1 parent 044139a commit 736e9f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/integration/NetworkDisruptionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ public void testJobRelocation() throws Exception {
4848
Job.Builder job = createJob("relocation-job", new ByteSizeValue(2, ByteSizeUnit.MB));
4949
PutJobAction.Request putJobRequest = new PutJobAction.Request(job);
5050
client().execute(PutJobAction.INSTANCE, putJobRequest).actionGet();
51-
ensureGreen();
5251

5352
OpenJobAction.Request openJobRequest = new OpenJobAction.Request(job.getId());
5453
AcknowledgedResponse openJobResponse = client().execute(OpenJobAction.INSTANCE, openJobRequest).actionGet();
5554
assertTrue(openJobResponse.isAcknowledged());
55+
ensureGreen();
5656

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

0 commit comments

Comments
 (0)