From 46212d903d1e941759769af336a1bfe90003f706 Mon Sep 17 00:00:00 2001 From: Nikita Pastukhov Date: Wed, 22 May 2024 22:57:34 +0300 Subject: [PATCH] tests: fix nats os example test --- tests/examples/nats/test_e07_object_storage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/examples/nats/test_e07_object_storage.py b/tests/examples/nats/test_e07_object_storage.py index 0c9a4b04a4..1310f71a12 100644 --- a/tests/examples/nats/test_e07_object_storage.py +++ b/tests/examples/nats/test_e07_object_storage.py @@ -13,7 +13,10 @@ async def test_basic(): await broker.start() os = await broker.object_storage("example-bucket") - existed_files = await os.list() + try: + existed_files = await os.list() + except Exception: + existed_files = () call = True for file in existed_files: