Skip to content

Commit 0736c7a

Browse files
author
Sebastien Stormacq
committed
force tests that start a lambda runtime to run sequencially
1 parent ccf1813 commit 0736c7a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tests/AWSLambdaRuntimeTests/LambdaStreamingTests.swift renamed to Tests/AWSLambdaRuntimeTests/LambdaLocalServer+StreamingTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ import FoundationNetworking
3232
import Foundation
3333
#endif
3434

35-
@Suite(.serialized)
36-
struct LambdaStreamingTests {
37-
35+
extension LambdaLocalServerTest {
3836
@Test("Streaming handler sends multiple chunks and completes successfully")
3937
@available(LambdaSwift 2.0, *)
4038
func testStreamingHandlerMultipleChunks() async throws {

Tests/AWSLambdaRuntimeTests/LambdaLocalServerTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ import Testing
1919

2020
@testable import AWSLambdaRuntime
2121

22-
extension LambdaRuntimeTests {
23-
22+
// serialized to start only one runtime at a time
23+
@Suite(.serialized)
24+
struct LambdaLocalServerTest
25+
{
2426
@Test("Local server respects LOCAL_LAMBDA_PORT environment variable")
2527
@available(LambdaSwift 2.0, *)
2628
func testLocalServerCustomPort() async throws {

0 commit comments

Comments
 (0)