Skip to content

Commit 86b5891

Browse files
committed
fix simple client tests .
1 parent 7c017ab commit 86b5891

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎pkg/simple-client/Tests/Functional/SimpleClientTest.php‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ public function testProduceAndConsumeOneMessage($config)
112112
return Result::ACK;
113113
});
114114

115-
$client->sendEvent('foo_topic', 'Hello there!', true);
115+
$client->setupBroker();
116+
117+
$client->sendEvent('foo_topic', 'Hello there!');
116118

117119
$client->consume(new ChainExtension([
118120
new LimitConsumptionTimeExtension(new \DateTime('+5sec')),
@@ -144,7 +146,9 @@ public function testProduceAndRouteToTwoConsumes($config)
144146
return Result::ACK;
145147
});
146148

147-
$client->sendEvent('foo_topic', 'Hello there!', true);
149+
$client->setupBroker();
150+
151+
$client->sendEvent('foo_topic', 'Hello there!');
148152

149153
$client->consume(new ChainExtension([
150154
new LimitConsumptionTimeExtension(new \DateTime('+5sec')),

0 commit comments

Comments
 (0)