Skip to content

Commit

Permalink
Wait for uploaded datasets in API tests
Browse files Browse the repository at this point in the history
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 galaxyproject#12136 (comment)
  • Loading branch information
mvdbeek committed Jun 15, 2021
1 parent 3a23b25 commit d5ba389
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy_test/base/populators.py
Expand Up @@ -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):
Expand Down

0 comments on commit d5ba389

Please sign in to comment.