Skip to content

Commit 35646a7

Browse files
committed
gps fixes
1 parent 05c1490 commit 35646a7

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎docker-compose.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
- MYSQL_DSN=mysql://root:rootpass@mysql/mqdev
2929
- PREDIS_DSN=redis+predis://redis
3030
- PHPREDIS_DSN=redis+phpredis://redis
31-
- GPS_DSN=gps:?projectId=mqdev&emulatorHost=http%%3A%%2F%%2Fgoogle-pubsub%%3A8085 # encoded http://google-pubsub:8085
31+
- GPS_DSN=gps:?projectId=mqdev
3232
- RABBITMQ_HOST=rabbitmq
3333
- RABBITMQ_USER=guest
3434
- RABBITMQ_PASSWORD=guest

‎pkg/enqueue-bundle/Tests/Functional/UseCasesTest.php‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ public function provideEnqueueConfigs()
124124
]];
125125

126126
// yield 'gps' => [[
127-
// 'transport' => getenv('GPS_DSN'),
127+
// 'transport' => [
128+
// 'dsn' => getenv('GPS_DSN'),
129+
// 'emulatorHost' => 'http://google-pubsub:8085'
130+
// ],
128131
// ]];
129132
}
130133

@@ -141,7 +144,7 @@ public function testProducerSendsMessage(array $enqueueConfig)
141144

142145
$consumer = $this->getPsrContext()->createConsumer($this->getTestQueue());
143146

144-
$message = $consumer->receive(1000);
147+
$message = $consumer->receive(100);
145148
$this->assertInstanceOf(PsrMessage::class, $message);
146149
$consumer->acknowledge($message);
147150

@@ -186,7 +189,7 @@ public function testClientConsumeCommandMessagesFromExplicitlySetQueue(array $en
186189
$tester = new CommandTester($command);
187190
$tester->execute([
188191
'--message-limit' => 2,
189-
'--time-limit' => 'now +10 seconds',
192+
'--time-limit' => 'now + 2 seconds',
190193
'client-queue-names' => ['test'],
191194
]);
192195

@@ -211,7 +214,7 @@ public function testClientConsumeMessagesFromExplicitlySetQueue(array $enqueueCo
211214
$tester = new CommandTester($command);
212215
$tester->execute([
213216
'--message-limit' => 2,
214-
'--time-limit' => 'now +10 seconds',
217+
'--time-limit' => 'now + 2 seconds',
215218
'client-queue-names' => ['test'],
216219
]);
217220

@@ -243,7 +246,7 @@ public function testTransportConsumeMessagesCommandShouldConsumeMessage(array $e
243246
$tester = new CommandTester($command);
244247
$tester->execute([
245248
'--message-limit' => 1,
246-
'--time-limit' => '+10sec',
249+
'--time-limit' => '+2sec',
247250
'--receive-timeout' => 1000,
248251
'--queue' => [$this->getTestQueue()->getQueueName()],
249252
'processor-service' => 'test.message.processor',

0 commit comments

Comments
 (0)