Skip to content

Commit 7eefe55

Browse files
committed
commit 5
1 parent 237525d commit 7eefe55

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Tools/LambdaTestTool-v2/tests/Amazon.Lambda.TestTool.IntegrationTests/BaseApiGatewayTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected async Task CleanupAsync()
4848
CancellationTokenSource.Dispose();
4949
CancellationTokenSource = new CancellationTokenSource();
5050
}
51+
Environment.SetEnvironmentVariable("APIGATEWAY_EMULATOR_ROUTE_CONFIG", null);
5152
}
5253

5354
protected async Task StartTestToolProcessAsync(ApiGatewayEmulatorMode apiGatewayMode, string routeName, int lambdaPort, int apiGatewayPort, CancellationTokenSource cancellationTokenSource, string httpMethod = "POST")

Tools/LambdaTestTool-v2/tests/Amazon.Lambda.TestTool.UnitTests/RuntimeApiTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public async Task AddEventToDataStore()
3232

3333
var lambdaPort = TestHelpers.GetNextLambdaRuntimePort();
3434
var cancellationTokenSource = new CancellationTokenSource();
35-
cancellationTokenSource.CancelAfter(15_000);
35+
cancellationTokenSource.CancelAfter(60_000);
3636
var options = new RunCommandSettings();
3737
options.LambdaEmulatorPort = lambdaPort;
3838
Environment.SetEnvironmentVariable("ASPNETCORE_ENVIRONMENT", "Development");
@@ -85,7 +85,7 @@ public async Task InvokeRequestResponse()
8585

8686
var lambdaPort = TestHelpers.GetNextLambdaRuntimePort();
8787
var cancellationTokenSource = new CancellationTokenSource();
88-
cancellationTokenSource.CancelAfter(15_000);
88+
cancellationTokenSource.CancelAfter(60_000);
8989
var options = new RunCommandSettings();
9090
options.LambdaEmulatorPort = lambdaPort;
9191
Environment.SetEnvironmentVariable("ASPNETCORE_ENVIRONMENT", "Development");

0 commit comments

Comments
 (0)