From afcfd78ecc38a262ef7c76eca0a50e51c4185c2d Mon Sep 17 00:00:00 2001 From: Nikita Pastukhov Date: Thu, 9 May 2024 13:56:26 +0300 Subject: [PATCH] tests: fix hanging test --- .codespell-whitelist.txt | 2 +- tests/brokers/base/consume.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.codespell-whitelist.txt b/.codespell-whitelist.txt index dcfed576bf..6b1a432b87 100644 --- a/.codespell-whitelist.txt +++ b/.codespell-whitelist.txt @@ -1 +1 @@ -dependant +dependant \ No newline at end of file diff --git a/tests/brokers/base/consume.py b/tests/brokers/base/consume.py index 68f4edc3e3..fc3ad0956d 100644 --- a/tests/brokers/base/consume.py +++ b/tests/brokers/base/consume.py @@ -246,6 +246,8 @@ def subscriber(m): timeout=self.timeout, ) + await sub.close() + assert event.is_set()