Skip to content

Commit

Permalink
Fix assertions in GeoIpDownloaderIT.testGeoIpDatabasesDownloadNoGeoip…
Browse files Browse the repository at this point in the history
…Processors() (elastic#98413)
  • Loading branch information
masseyke committed Sep 13, 2023
1 parent ff2b455 commit d36aba2
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,11 @@ public void testGeoIpDatabasesDownloadNoGeoipProcessors() throws Exception {
assertBusy(() -> {
PersistentTasksCustomMetadata.PersistentTask<PersistentTaskParams> task = getTask();
assertNotNull(task);
assertNull(task.getState());
putGeoIpPipeline(); // This is to work around the race condition described in #92888
assertNotNull(task.getState());
putGeoIpPipeline(pipelineId); // This is to work around the race condition described in #92888
});
putNonGeoipPipeline(pipelineId);
assertBusy(() -> { assertNull(getTask().getState()); });
putNonGeoipPipeline(pipelineId);
assertNull(getTask().getState());
assertNotNull(getTask().getState()); // removing all geoip processors should not result in the task being stopped
putGeoIpPipeline();
assertBusy(() -> {
GeoIpTaskState state = getGeoIpTaskState();
Expand Down

0 comments on commit d36aba2

Please sign in to comment.