Skip to content

Commit a05806f

Browse files
committed
delay strategy
1 parent 3a03b73 commit a05806f

3 files changed

Lines changed: 27 additions & 27 deletions

File tree

‎pkg/sqs/Tests/Spec/SqsSendAndReceiveDelayedMessageFromQueueTest.php‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ class SqsSendAndReceiveDelayedMessageFromQueueTest extends SendAndReceiveDelayed
2727
*/
2828
private $queue;
2929

30+
protected function tearDown()
31+
{
32+
parent::tearDown();
33+
34+
if ($this->context && $this->queue) {
35+
$this->context->deleteQueue($this->queue);
36+
}
37+
}
38+
3039
/**
3140
* {@inheritdoc}
3241
*/
@@ -55,13 +64,4 @@ protected function createQueue(PsrContext $context, $queueName)
5564

5665
return $this->queue;
5766
}
58-
59-
protected function tearDown()
60-
{
61-
parent::tearDown();
62-
63-
if ($this->context && $this->queue) {
64-
$this->context->deleteQueue($this->queue);
65-
}
66-
}
6767
}

‎pkg/sqs/Tests/Spec/SqsSendToAndReceiveFromQueueTest.php‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ class SqsSendToAndReceiveFromQueueTest extends SendToAndReceiveFromQueueSpec
2323
*/
2424
private $queue;
2525

26+
protected function tearDown()
27+
{
28+
parent::tearDown();
29+
30+
if ($this->context && $this->queue) {
31+
$this->context->deleteQueue($this->queue);
32+
}
33+
}
34+
2635
/**
2736
* {@inheritdoc}
2837
*/
@@ -51,13 +60,4 @@ protected function createQueue(PsrContext $context, $queueName)
5160

5261
return $this->queue;
5362
}
54-
55-
protected function tearDown()
56-
{
57-
parent::tearDown();
58-
59-
if ($this->context && $this->queue) {
60-
$this->context->deleteQueue($this->queue);
61-
}
62-
}
6363
}

‎pkg/sqs/Tests/Spec/SqsSendToAndReceiveFromTopicTest.php‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ class SqsSendToAndReceiveFromTopicTest extends SendToAndReceiveFromTopicSpec
2323
*/
2424
private $queue;
2525

26+
protected function tearDown()
27+
{
28+
parent::tearDown();
29+
30+
if ($this->context && $this->queue) {
31+
$this->context->deleteQueue($this->queue);
32+
}
33+
}
34+
2635
/**
2736
* {@inheritdoc}
2837
*/
@@ -51,13 +60,4 @@ protected function createTopic(PsrContext $context, $topicName)
5160

5261
return $this->queue;
5362
}
54-
55-
protected function tearDown()
56-
{
57-
parent::tearDown();
58-
59-
if ($this->context && $this->queue) {
60-
$this->context->deleteQueue($this->queue);
61-
}
62-
}
6363
}

0 commit comments

Comments
 (0)