Skip to content

Commit

Permalink
Fix test_map_over_empty_collection test
Browse files Browse the repository at this point in the history
It was using the wrong id type, and since we don't prepopulate the
collection we need to wait until discovery happens. It actually nicely
illustrates the bug.
  • Loading branch information
mvdbeek committed Apr 19, 2024
1 parent 9a433ab commit 0e6c669
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/galaxy_test/api/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1659,9 +1659,8 @@ def test_map_over_collection(self, history_id):

@skip_without_tool("cat1")
def test_map_over_empty_collection(self, history_id):
hdca_id = self.dataset_collection_populator.create_list_in_history(history_id, contents=[]).json()["outputs"][
0
]["id"]
response = self.dataset_collection_populator.create_list_in_history(history_id, contents=[], wait=True).json()
hdca_id = response["output_collections"][0]["id"]
inputs = {
"input1": {"batch": True, "values": [{"src": "hdca", "id": hdca_id}]},
}
Expand Down

0 comments on commit 0e6c669

Please sign in to comment.