Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_queue: Ensure the test_suite queue exists in setUp.

Anders Kaseorg773c909d7fcb
diff --git a/zerver/tests/test_queue.py b/zerver/tests/test_queue.py
index fad39d43d2f..ded6e9138ea 100644
--- a/zerver/tests/test_queue.py
+++ b/zerver/tests/test_queue.py
@@ -114,6 +114,6 @@ class TestQueueImplementation(ZulipTestCase):
def setUp(self) -> None:
queue_client = get_queue_client()
assert queue_client.channel
- if "test_suite" in queue_client.queues:
- queue_client.channel.queue_purge("test_suite")
+ queue_client.channel.queue_declare("test_suite", durable=True)
+ queue_client.channel.queue_purge("test_suite")
super().setUp()