Skip to content

Commit 6e8f2e4

Browse files
aarondfrancisclaude
andcommitted
Fix LambdaClientTest expectations for architecture values
The tests expected Architecture::X86_64 enum but the actual code passes the string value 'x86_64'. Updated test expectations to match. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2370029 commit 6e8f2e4

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

tests/Unit/LambdaClientTest.php

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace Hammerstone\Sidecar\Tests\Unit;
88

99
use Aws\Lambda\Exception\LambdaException;
10-
use Hammerstone\Sidecar\Architecture;
1110
use Hammerstone\Sidecar\Clients\LambdaClient;
1211
use Hammerstone\Sidecar\Tests\Unit\Support\DeploymentTestFunction;
1312
use Hammerstone\Sidecar\Tests\Unit\Support\DeploymentTestFunctionWithImage;
@@ -180,9 +179,7 @@ public function test_update_existing_function()
180179
],
181180
'MemorySize' => 'test-MemorySize',
182181
'Layers' => 'test-Layers',
183-
'Architectures' => [
184-
Architecture::X86_64
185-
],
182+
'Architectures' => ['x86_64'],
186183
'Tags' => [],
187184
]);
188185

@@ -193,9 +190,7 @@ public function test_update_existing_function()
193190
'S3Bucket' => 'test-bucket',
194191
'S3Key' => 'test-key',
195192
'Publish' => 'test-Publish',
196-
'Architectures' => [
197-
Architecture::X86_64
198-
]
193+
'Architectures' => ['x86_64']
199194
]);
200195

201196
$this->lambda->updateExistingFunction($function);
@@ -222,9 +217,7 @@ public function test_update_existing_image_function()
222217
],
223218
'Layers' => [],
224219
'PackageType' => 'Image',
225-
'Architectures' => [
226-
Architecture::X86_64
227-
],
220+
'Architectures' => ['x86_64'],
228221
'Tags' => [],
229222
]);
230223

@@ -234,9 +227,7 @@ public function test_update_existing_image_function()
234227
'FunctionName' => 'test-FunctionName',
235228
'Publish' => 'test-Publish',
236229
'ImageUri' => '123.dkr.ecr.us-west-2.amazonaws.com/image:latest',
237-
'Architectures' => [
238-
Architecture::X86_64
239-
]
230+
'Architectures' => ['x86_64']
240231
]);
241232

242233
$this->lambda->updateExistingFunction($function);

0 commit comments

Comments
 (0)