From 2cc3ec58e7bfba0c7432b84ed8aab580acb877b4 Mon Sep 17 00:00:00 2001 From: Ben Clifford Date: Wed, 3 Jul 2024 10:39:04 +0200 Subject: [PATCH] Join on stopped thread at end of LocalProvider+ssh test (#3505) This stops that thread being left still running over the end of the test - which is needed in work in PR #3397 to ensure that no threads are left running at the end of a test. If that shutdown hangs, this test will now hang rather than leave the thread behind. Along with PR #3504, this eliminates any threads left behind after parsl/tests/test_providers/test_local_provider.py --- parsl/tests/test_providers/test_local_provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/parsl/tests/test_providers/test_local_provider.py b/parsl/tests/test_providers/test_local_provider.py index 29907ec47d..06b18c0ee9 100644 --- a/parsl/tests/test_providers/test_local_provider.py +++ b/parsl/tests/test_providers/test_local_provider.py @@ -105,6 +105,7 @@ def test_ssh_channel(): def _stop_sshd(sshd_thread): sshd_thread.stop() + sshd_thread.join() class SSHDThread(threading.Thread):