Skip to content

Commit 1a0fb86

Browse files
committed
Test new connection config
1 parent 9deefd2 commit 1a0fb86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Feature/ConnectorTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ public function test_no_verification_ssl_connection(): void
168168
'verify_peer' => false,
169169
'passphrase' => null,
170170
],
171+
'read_timeout' => 10,
172+
'write_timeout' => 15,
171173
],
172174

173175
'worker' => env('RABBITMQ_WORKER', 'default'),
@@ -180,8 +182,10 @@ public function test_no_verification_ssl_connection(): void
180182
$connection = $queue->connection('rabbitmq');
181183
$this->assertInstanceOf(RabbitMQQueue::class, $connection);
182184
$this->assertInstanceOf(AMQPSSLConnection::class, $connection->getConnection());
183-
/** @var AMQPConnectionConfig */
185+
/** @var AMQPConnectionConfig $config */
184186
$config = $connection->getConnection()->getConfig();
185187
$this->assertFalse($config->getSslVerify());
188+
$this->assertEquals(10, $config->getReadTimeout());
189+
$this->assertEquals(15, $config->getWriteTimeout());
186190
}
187191
}

0 commit comments

Comments
 (0)