Skip to content

Commit

Permalink
Fix Bref tests (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Nov 22, 2023
1 parent b51448a commit 78fe628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Lambda/LambdaClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ public function handle($event, Context $context)

// Check the lambda result contains the error message
$error = json_decode((string) $eventFailureLog->getBody(), true);
$this->assertSame('Error while calling the Lambda runtime API: The requested URL returned error: 400 Bad Request', $error['errorMessage']);
$this->assertSame('Error while calling the Lambda runtime API: The requested URL returned error: 400', $error['errorMessage']);

$this->assertErrorInLogs('Exception', 'Error while calling the Lambda runtime API: The requested URL returned error: 400 Bad Request');
$this->assertErrorInLogs('Exception', 'Error while calling the Lambda runtime API: The requested URL returned error: 400');
}

public function test function results that cannot be encoded are reported as invocation errors()
Expand Down

0 comments on commit 78fe628

Please sign in to comment.