From 38cd61fded01c077d08859667ec49d6be9a94608 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Wed, 15 Mar 2023 14:25:12 +0200 Subject: [PATCH] Copy connections before check --- minode/tests/test_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minode/tests/test_app.py b/minode/tests/test_app.py index 4eccd60..7ef63c9 100644 --- a/minode/tests/test_app.py +++ b/minode/tests/test_app.py @@ -34,7 +34,8 @@ class TestAppProto(unittest.TestCase): def _connections(self): return [ - c for c in shared.connections if c.status == 'fully_established'] + c for c in shared.connections.copy() + if c.status == 'fully_established'] @classmethod def setUpClass(cls):