diff --git a/tests/conftest.py b/tests/conftest.py index ac14a9e..533f349 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -80,9 +80,7 @@ def nested_setup(): def mock_vault_workers(): mock_dynamic_renew = Mock() mock_k8s_renew = Mock() - with patch("gestalt.vault.Thread", - side_effect=[mock_dynamic_renew, mock_k8s_renew]): - yield (mock_dynamic_renew, mock_k8s_renew) + return (mock_dynamic_renew, mock_k8s_renew) @pytest.fixture