We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bb4ebc6 + 2e3caf2 commit 06818e4Copy full SHA for 06818e4
1 file changed
taskiq_aio_pika/tests/conftest.py
@@ -112,7 +112,10 @@ async def exchange(
112
yield exchange
113
114
try:
115
- await exchange.delete(timeout=1)
+ await exchange.delete(
116
+ timeout=1,
117
+ if_unused=False,
118
+ )
119
except ChannelNotFoundEntity: # pragma: no cover
120
pass # noqa: WPS420
121
@@ -137,7 +140,11 @@ async def queue(
137
140
yield queue
138
141
139
142
- await queue.delete(timeout=1)
143
+ await queue.delete(
144
145
+ if_empty=False,
146
147
148
149
150
@@ -170,6 +177,7 @@ async def broker(
170
177
exchange_name=exchange_name,
171
178
queue_name=queue_name,
172
179
)
180
+ broker.is_worker_process = True
173
181
174
182
await broker.startup()
175
183
0 commit comments