Skip to content

Commit 610add1

Browse files
committed
Fix SqsConnectionFactory test
1 parent ce0db47 commit 610add1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)