Skip to content

Commit bbe834f

Browse files
committed
add delay on test for cleaning up
1 parent 07a05df commit bbe834f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/AWSLambdaRuntimeTests/LambdaRuntimeTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ struct LambdaRuntimeTests {
6161
taskGroup.cancelAll()
6262
}
6363

64+
// wait a small amount to ensure everything is cancelled and cleanup
65+
try await Task.sleep(for: .seconds(0.5))
66+
6467
// Running the second runtime should work now
6568
try await withThrowingTaskGroup(of: Void.self) { taskGroup in
6669
taskGroup.addTask {

0 commit comments

Comments
 (0)