From 9d9a04f0b682826555543a876971b53844e7b016 Mon Sep 17 00:00:00 2001 From: Alexandru Busuioc Date: Mon, 5 Aug 2024 16:29:11 +0100 Subject: [PATCH] try some dumb workarounds --- ...endToTopicAndReceiveNoWaitFromQueueTest.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/pkg/snsqs/Tests/Spec/SnsQsSendToTopicAndReceiveNoWaitFromQueueTest.php b/pkg/snsqs/Tests/Spec/SnsQsSendToTopicAndReceiveNoWaitFromQueueTest.php index e370c1f32..02a5dede8 100644 --- a/pkg/snsqs/Tests/Spec/SnsQsSendToTopicAndReceiveNoWaitFromQueueTest.php +++ b/pkg/snsqs/Tests/Spec/SnsQsSendToTopicAndReceiveNoWaitFromQueueTest.php @@ -24,16 +24,28 @@ protected function tearDown(): void protected function createContext() { - return $this->createSnsQsContext(); + try { + return $this->createSnsQsContext(); + } finally { + sleep(1); + } } protected function createTopic(Context $context, $topicName) { - return $this->createSnsQsTopic($topicName); + try { + return $this->createSnsQsTopic($topicName); + } finally { + sleep(1); + } } protected function createQueue(Context $context, $queueName) { - return $this->createSnsQsQueue($queueName); + try { + return $this->createSnsQsQueue($queueName); + } finally { + sleep(1); + } } }