Skip to content

Commit 5bbcb23

Browse files
authored
Fix Bref tests (#154)
1 parent 7b6d213 commit 5bbcb23

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: Ubuntu-22.04
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Fetch master from where the PR started
1717
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Checkout code
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v4
4141

4242
- name: Set up PHP
4343
uses: shivammathur/setup-php@v2

.github/workflows/static.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- name: Cache PHPStan
1616
uses: actions/cache@v2
@@ -42,7 +42,7 @@ jobs:
4242

4343
steps:
4444
- name: Checkout code
45-
uses: actions/checkout@v2
45+
uses: actions/checkout@v4
4646

4747
- name: Cache PhpCsFixer
4848
uses: actions/cache@v2
@@ -66,7 +66,7 @@ jobs:
6666
runs-on: ubuntu-22.04
6767
steps:
6868
- name: Checkout code
69-
uses: actions/checkout@v2
69+
uses: actions/checkout@v4
7070

7171
- name: Cache Psalm
7272
uses: actions/cache@v2
@@ -103,7 +103,7 @@ jobs:
103103
tools: composer-normalize
104104

105105
- name: Checkout code
106-
uses: actions/checkout@v2
106+
uses: actions/checkout@v4
107107

108108
- name: Normalize
109109
run: |

src/bref/tests/Lambda/LambdaClientTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ public function handle($event, Context $context)
189189

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

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

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

0 commit comments

Comments
 (0)