Skip to content

Commit 1471d93

Browse files
committed
Debugging integ tests
1 parent 9b308ae commit 1471d93

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Libraries/test/Amazon.Lambda.RuntimeSupport.Tests/Amazon.Lambda.RuntimeSupport.IntegrationTests/BaseCustomRuntimeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private string GetDeploymentZipPath()
352352
if (!File.Exists(deploymentZipFile))
353353
{
354354
var message = new StringBuilder();
355-
message.AppendLine($"Deployment package not found at expected path: {deploymentZipFile}");
355+
message.AppendLine($"Deployment package for {DeploymentPackageZipRelativePath} not found at expected path: {deploymentZipFile}");
356356
message.AppendLine("Available Test Bundles:");
357357
foreach (var kvp in _fixture.TestAppPaths)
358358
{

Libraries/test/Amazon.Lambda.RuntimeSupport.Tests/Amazon.Lambda.RuntimeSupport.IntegrationTests/IntegrationTestCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Amazon.Lambda.RuntimeSupport.IntegrationTests;
44

5-
[CollectionDefinition("Integration Tests")]
5+
[CollectionDefinition("Integration Tests", DisableParallelization = true)]
66
public class IntegrationTestCollection : ICollectionFixture<IntegrationTestFixture>, ICollectionFixture<ResponseStreamingTestsFixture>
77
{
88

Libraries/test/Amazon.Lambda.RuntimeSupport.Tests/Amazon.Lambda.RuntimeSupport.IntegrationTests/IntegrationTestFixture.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ public async Task InitializeAsync()
4242
"Libraries/test/Amazon.Lambda.RuntimeSupport.Tests/ResponseStreamingFunctionHandlers");
4343
_tempPaths.AddRange([testAppPath, toolPath]);
4444
await LambdaToolsHelper.LambdaPackage(toolPath, "net10.0", testAppPath);
45-
TestAppPaths[@"ResponseStreamingFunctionHandlers\bin\Release\net10.0\ResponseStreamingFunctionHandlers.zip"] = Path.Combine(testAppPath, @"bin\Release\net10.0\ResponseStreamingFunctionHandlers.zip");
45+
46+
//var fullPath = Path.Combine(testAppPath, @"bin\Release\net10.0\ResponseStreamingFunctionHandlers.zip");
47+
var fullPath = Path.Combine(testAppPath, "bin", "Release", "net10.0", "ResponseStreamingFunctionHandlers.zip");
48+
if (!File.Exists(fullPath))
49+
throw new FileNotFoundException($"Expected file not found: {fullPath}");
50+
51+
TestAppPaths[@"ResponseStreamingFunctionHandlers\bin\Release\net10.0\ResponseStreamingFunctionHandlers.zip"] = fullPath;
4652
}
4753

4854

0 commit comments

Comments
 (0)