Skip to content

Commit 446dda4

Browse files
committed
Fix SqsConnectionFactory test
1 parent a21e5e1 commit 446dda4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/sqs/SqsConnectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct($config = 'sqs:')
4040
{
4141
if ($config instanceof SqsClient) {
4242
$this->client = $config;
43-
$this->config = $this->defaultConfig();
43+
$this->config = ['lazy' => false] + $this->defaultConfig();
4444

4545
return;
4646
} elseif (empty($config) || 'sqs:' === $config) {

pkg/sqs/Tests/SqsConnectionFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testCouldBeConstructedWithClient()
5353
{
5454
$client = $this->createMock(SqsClient::class);
5555

56-
$factory = new SqsConnectionFactory($client, ['lazy' => false]);
56+
$factory = new SqsConnectionFactory($client);
5757

5858
$context = $factory->createContext();
5959

0 commit comments

Comments
 (0)