Skip to content

Commit 91a68e7

Browse files
committed
fix tests
1 parent 5b23f86 commit 91a68e7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎pkg/amqp-lib/Tests/Spec/AmqpSendToTopicAndReceiveFromQueueWithBasicConsumeMethodTest.php‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,19 @@ public function test()
3232
$topic = $context->createTopic('send_to_topic_and_receive_from_queue_spec_basic_consume');
3333
$topic->setType(AmqpTopic::TYPE_FANOUT);
3434
$topic->addFlag(AmqpTopic::FLAG_DURABLE);
35+
36+
try {
37+
$context->deleteTopic($topic);
38+
} catch (\Exception $e) {}
39+
3540
$context->declareTopic($topic);
3641

3742
$queue = $context->createQueue('send_to_topic_and_receive_from_queue_spec_basic_consume');
43+
44+
try {
45+
$context->deleteQueue($queue);
46+
} catch (\Exception $e) {}
47+
3848
$context->declareQueue($queue);
3949
$context->purgeQueue($queue);
4050

0 commit comments

Comments
 (0)