Skip to content

Commit 0e6c669

Browse files
committed
Fix test_map_over_empty_collection test
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.
1 parent 9a433ab commit 0e6c669

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/galaxy_test/api/test_tools.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,9 +1659,8 @@ def test_map_over_collection(self, history_id):
16591659

16601660
@skip_without_tool("cat1")
16611661
def test_map_over_empty_collection(self, history_id):
1662-
hdca_id = self.dataset_collection_populator.create_list_in_history(history_id, contents=[]).json()["outputs"][
1663-
0
1664-
]["id"]
1662+
response = self.dataset_collection_populator.create_list_in_history(history_id, contents=[], wait=True).json()
1663+
hdca_id = response["output_collections"][0]["id"]
16651664
inputs = {
16661665
"input1": {"batch": True, "values": [{"src": "hdca", "id": hdca_id}]},
16671666
}

0 commit comments

Comments
 (0)