diff --git a/lib/galaxy_test/api/test_tools.py b/lib/galaxy_test/api/test_tools.py index 7befe7f221b1..3eacb456a0ec 100644 --- a/lib/galaxy_test/api/test_tools.py +++ b/lib/galaxy_test/api/test_tools.py @@ -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}]}, }