diff --git a/tests/test_backends.py b/tests/test_backends.py index ff1b6f2..de4074a 100644 --- a/tests/test_backends.py +++ b/tests/test_backends.py @@ -6,6 +6,7 @@ from functools import partial from os import environ from pathlib import Path +import time from typing import Any, Dict, List, Type import pytest @@ -109,6 +110,8 @@ def test_create_generic_env_cached(self, tmp_path, monkeypatch): # one will be gone. environment_1.destroy(connection_key_1) + time.sleep(0.1) + assert not environment_1.exists() assert not dup_environment_1.exists()