From 0e6c669cea43a00a234140438cb07a95b1dfb2d2 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 19 Apr 2024 10:12:18 +0200 Subject: [PATCH] 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. --- lib/galaxy_test/api/test_tools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}]}, }