Skip to content

Commit

Permalink
Assert count original connector
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Jun 18, 2023
1 parent 8fd7260 commit 0339cb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/RetryRequestsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ public function test_retry_with_successful_attempts(): void

$client = new MockClient($responses());
$connector = new RetryableConnector(
(new Connector())->withClient($client)
$originalConnector = (new Connector())->withClient($client)
);

$this->assertCount(1, $originalConnector->middleware());

$response = $connector->send(new GetStatusRequest());
$recorded = $client->recorded();

Expand Down

0 comments on commit 0339cb8

Please sign in to comment.