Skip to content

Commit

Permalink
Add wait for new dataset to be created in test
Browse files Browse the repository at this point in the history
`test_index_using_keys` doesn't seem to fail on local but fails on CI because it returns an empty object instead of the object with the size.
I wonder if this is because the dataset is not fully populated when checking and hopefully this will fix it.
  • Loading branch information
davelopez committed Feb 21, 2022
1 parent 41de508 commit 1f3c03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy_test/api/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_index(self):

def test_index_using_keys(self):
expected_keys = "size"
self.dataset_populator.new_dataset(self.history_id)
self.dataset_populator.new_dataset(self.history_id, wait=True)
index_response = self._get(f"datasets?keys={expected_keys}")
self._assert_status_code_is(index_response, 200)
datasets = index_response.json()
Expand Down

0 comments on commit 1f3c03d

Please sign in to comment.