Skip to content

Commit c2d1dab

Browse files
committed
[amqp-bunny] purge queues in specs.
1 parent a8c288b commit c2d1dab

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pkg/amqp-bunny/Tests/Spec/AmqpSendAndReceiveDelayedMessageWithDelayPluginStrategyTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Enqueue\AmqpBunny\Tests\Spec;
44

55
use Enqueue\AmqpBunny\AmqpConnectionFactory;
6+
use Enqueue\AmqpBunny\AmqpContext;
67
use Enqueue\AmqpTools\RabbitMqDelayPluginDelayStrategy;
7-
use Interop\Amqp\AmqpContext;
88
use Interop\Queue\PsrContext;
99
use Interop\Queue\Spec\SendAndReceiveDelayedMessageFromQueueSpec;
1010

@@ -30,9 +30,9 @@ protected function createContext()
3030
}
3131

3232
/**
33-
* {@inheritdoc}
34-
*
3533
* @param AmqpContext $context
34+
*
35+
* {@inheritdoc}
3636
*/
3737
protected function createQueue(PsrContext $context, $queueName)
3838
{

pkg/amqp-bunny/Tests/Spec/AmqpSendAndReceiveDelayedMessageWithDlxStrategyTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Enqueue\AmqpBunny\Tests\Spec;
44

55
use Enqueue\AmqpBunny\AmqpConnectionFactory;
6+
use Enqueue\AmqpBunny\AmqpContext;
67
use Enqueue\AmqpTools\RabbitMqDlxDelayStrategy;
78
use Interop\Queue\PsrContext;
89
use Interop\Queue\Spec\SendAndReceiveDelayedMessageFromQueueSpec;
@@ -24,13 +25,16 @@ protected function createContext()
2425
}
2526

2627
/**
28+
* @param AmqpContext $context
29+
*
2730
* {@inheritdoc}
2831
*/
2932
protected function createQueue(PsrContext $context, $queueName)
3033
{
3134
$queue = parent::createQueue($context, $queueName);
3235

3336
$context->declareQueue($queue);
37+
$context->purgeQueue($queue);
3438

3539
return $queue;
3640
}

0 commit comments

Comments
 (0)