Skip to content

Commit f1f49a5

Browse files
committed
swift format
1 parent 97e7fce commit f1f49a5

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

Tests/AWSLambdaRuntimeTests/LambdaRuntimeTests.swift

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,10 @@ struct LambdaRuntimeTests {
6262
try await taskGroup.next()
6363
}
6464

65-
// cancel the group to end the test
65+
// cancel the group to end the test
6666
taskGroup.cancelAll()
6767

6868
}
69-
70-
// wait a small amount to ensure everything is cancelled and cleanup
71-
try await Task.sleep(for: .seconds(0.5))
72-
73-
// Running the second runtime should work now
74-
try await withThrowingTaskGroup(of: Void.self) { taskGroup in
75-
taskGroup.addTask {
76-
// ChannelError will be thrown when we cancel the task group
77-
await #expect(throws: ChannelError.self) {
78-
try await runtime2.run()
79-
}
80-
}
81-
82-
// Set timeout and cancel the runtime 2
83-
try await Task.sleep(for: .seconds(1))
84-
taskGroup.cancelAll()
85-
}
8669
}
8770
@Test("run() must be cancellable")
8871
func testLambdaRuntimeCancellable() async throws {

0 commit comments

Comments
 (0)