Skip to content

Commit 7fbec1d

Browse files
committed
rename test function timeout to withTimeout
1 parent efc4cd1 commit 7fbec1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/AWSLambdaRuntimeTests/LambdaRuntimeClientTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ struct LambdaRuntimeClientTests {
299299
// simulate traffic until the server reports it has closed the connection
300300
// or a timeout, whichever comes first
301301
// result is ignored here, either there is a connection error or a timeout
302-
let _ = try await timeout(deadline: .seconds(1)) {
302+
let _ = try await withTimeout(deadline: .seconds(1)) {
303303
while true {
304304
let (_, writer) = try await runtimeClient.nextInvocation()
305305
try await writer.writeAndFinish(ByteBuffer(string: "hello"))

Tests/AWSLambdaRuntimeTests/Timeout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
// as suggested by https://github.com/vapor/postgres-nio/issues/489#issuecomment-2186509773
16-
func timeout<Success: Sendable>(
16+
func withTimeout<Success: Sendable>(
1717
deadline: Duration,
1818
_ closure: @escaping @Sendable () async throws -> Success
1919
) async throws -> Success {

0 commit comments

Comments
 (0)