Commit 543bb905 authored by davelopez's avatar davelopez
Browse files

Fix possible flaky test

Ensure the datasets are uploaded before attempting to delete/purge them.
parent 08acc183
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -446,6 +446,8 @@ class DatasetsApiTestCase(ApiTestCase):
            hda = self.dataset_populator.new_dataset(history_id)
            dataset_map[index] = hda["id"]

        self.dataset_populator.wait_for_history(history_id)

        expected_deleted_source_ids = [
            {"id": dataset_map[1], "src": "hda"},
            {"id": dataset_map[2], "src": "hda"},