From 4e605ea233d8e5a3b1c72b8a3ebec77a62b3b58e Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Tue, 25 Aug 2020 17:47:23 +0200 Subject: [PATCH] Revert "[tests] Try fixing random failures in one test of PUB/SUB abstraction." Whoops, wrong test :) This reverts commit 5c2b31c566c5d797d61f5f1da9885bc1857320fd. --- tests/Predis/PubSub/ConsumerTest.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/Predis/PubSub/ConsumerTest.php b/tests/Predis/PubSub/ConsumerTest.php index 6a6d78cd..c69a7a15 100644 --- a/tests/Predis/PubSub/ConsumerTest.php +++ b/tests/Predis/PubSub/ConsumerTest.php @@ -366,14 +366,10 @@ class ConsumerTest extends PredisTestCase $pubsub = new PubSubConsumer($consumer); $pubsub->subscribe('channel:foo'); - usleep(250000); - $producer->publish('channel:foo', 'message1'); $producer->publish('channel:foo', 'message2'); $producer->publish('channel:foo', 'QUIT'); - usleep(250000); - foreach ($pubsub as $message) { if ($message->kind !== 'message') { continue;