From d5ba3893a04023b3ec55d2c8c45f93d26cc02f29 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 15 Jun 2021 16:28:19 +0200 Subject: [PATCH] Wait for uploaded datasets in API tests Most methods that stage datasets already do that anwyway. Might be nice in the future if we could just cancel running jobs at the end of a test and not wait for uploads where not necessary, but this should increase test stability in the short term. Fixes https://github.com/galaxyproject/galaxy/pull/12136#issuecomment-861531075 --- lib/galaxy_test/base/populators.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/galaxy_test/base/populators.py b/lib/galaxy_test/base/populators.py index 2aeaa4f57e51..3a722c32730b 100644 --- a/lib/galaxy_test/base/populators.py +++ b/lib/galaxy_test/base/populators.py @@ -1573,6 +1573,7 @@ def __datasets(self, history_id, count, contents=None): if contents: new_kwds["content"] = contents[i] datasets.append(self.dataset_populator.new_dataset(history_id, **new_kwds)) + self.wait_for_history(history_id, assert_ok=True) return datasets def wait_for_dataset_collection(self, create_payload, assert_ok=False, timeout=DEFAULT_TIMEOUT):