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 authored Aug 11, 2023
1 parent b69d414 commit c9aa3b1
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 c9aa3b1

Please sign in to comment.