Skip to content

Commit 9cfb226

Browse files
committed
fix tests
1 parent 96cc12c commit 9cfb226

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: pkg/enqueue/Tests/Functional/Client/SimpleClientTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testProduceAndConsumeOneMessage()
3434
$actualMessage = null;
3535

3636
$client = new SimpleClient($this->context);
37-
$client->bind('foo_topic', function (Message $message) use (&$actualMessage) {
37+
$client->bind('foo_topic', 'foo_processor', function (Message $message) use (&$actualMessage) {
3838
$actualMessage = $message;
3939

4040
return Result::ACK;
@@ -56,12 +56,12 @@ public function testProduceAndRouteToTwoConsumes()
5656
$received = 0;
5757

5858
$client = new SimpleClient($this->context);
59-
$client->bind('foo_topic', function () use (&$received) {
59+
$client->bind('foo_topic', 'foo_processor1', function () use (&$received) {
6060
++$received;
6161

6262
return Result::ACK;
6363
});
64-
$client->bind('foo_topic', function () use (&$received) {
64+
$client->bind('foo_topic', 'foo_processor2', function () use (&$received) {
6565
++$received;
6666

6767
return Result::ACK;

0 commit comments

Comments
 (0)