Skip to content

Commit

Permalink
add sleep to allow destroy to happen
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Nov 8, 2023
1 parent 29c1a59 commit 5848df1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 5848df1

Please sign in to comment.