Skip to content

Commit 237525d

Browse files
committed
commit 4
1 parent 288e4ca commit 237525d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Libraries/test/Amazon.Lambda.RuntimeSupport.Tests/Amazon.Lambda.RuntimeSupport.UnitTests/LambdaBootstrapTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public async Task TraceIdEnvironmentVariableIsSet()
165165
[Fact]
166166
public async Task HandlerThrowsException()
167167
{
168-
using (var bootstrap = new LambdaBootstrap(_testFunction.BaseHandlerThrowsAsync, null))
168+
using (var bootstrap = new LambdaBootstrap(_testFunction.BaseHandlerThrowsAsync, null, null, _environmentVariables))
169169
{
170170
bootstrap.Client = _testRuntimeApiClient;
171171
Assert.Null(_environmentVariables.GetEnvironmentVariable(LambdaEnvironment.EnvVarTraceId));
@@ -183,7 +183,7 @@ public async Task HandlerInputAndOutputWork()
183183
{
184184
const string testInput = "a MiXeD cAsE sTrInG";
185185

186-
using (var bootstrap = new LambdaBootstrap(_testFunction.BaseHandlerToUpperAsync, null))
186+
using (var bootstrap = new LambdaBootstrap(_testFunction.BaseHandlerToUpperAsync, null, null, _environmentVariables))
187187
{
188188
_testRuntimeApiClient.FunctionInput = Encoding.UTF8.GetBytes(testInput);
189189
bootstrap.Client = _testRuntimeApiClient;
@@ -201,7 +201,7 @@ public async Task HandlerInputAndOutputWork()
201201
[Fact]
202202
public async Task HandlerReturnsNull()
203203
{
204-
using (var bootstrap = new LambdaBootstrap(_testFunction.BaseHandlerReturnsNullAsync, null))
204+
using (var bootstrap = new LambdaBootstrap(_testFunction.BaseHandlerReturnsNullAsync, null, null, _environmentVariables))
205205
{
206206
_testRuntimeApiClient.FunctionInput = new byte[0];
207207
bootstrap.Client = _testRuntimeApiClient;

0 commit comments

Comments
 (0)