From 97ae3fd820ee8fd3434c67059dc713734e8c4f86 Mon Sep 17 00:00:00 2001 From: Derek Homeier Date: Wed, 8 Jan 2025 01:44:30 +0100 Subject: [PATCH] Fix subset_state test for remove_subset_group --- glue/core/tests/test_edit_subset_mode.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glue/core/tests/test_edit_subset_mode.py b/glue/core/tests/test_edit_subset_mode.py index 1249cf180..3875ecb47 100644 --- a/glue/core/tests/test_edit_subset_mode.py +++ b/glue/core/tests/test_edit_subset_mode.py @@ -195,7 +195,8 @@ class Listener(HubListener): def handler(msg): assert len(data1.subsets) == len(data2.subsets) - assert data2.subsets[0].subset_state is data1.subsets[0].subset_state + for i in range(len(data1.subsets)): + assert data2.subsets[i].subset_state is data1.subsets[i].subset_state count[0] += 1 app.session.hub.subscribe(listener, SubsetCreateMessage, handler=handler)