Skip to content

Commit 3fa503f

Browse files
committed
Fix failing Unit-Test
1 parent 70e1647 commit 3fa503f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SwiftAwsLambdaTests/LambdaTest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class LambdaTest: XCTestCase {
7979
}
8080
}
8181
let signal = Signal.ALRM
82-
let maxTimes = 50
82+
let maxTimes = 1000
8383
let configuration = Lambda.Configuration(lifecycle: .init(maxTimes: maxTimes, stopSignal: signal))
8484
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)
8585
let future = Lambda.runAsync(eventLoopGroup: eventLoopGroup, handler: MyHandler(), configuration: configuration)
@@ -89,7 +89,7 @@ class LambdaTest: XCTestCase {
8989
}
9090
let result = try future.wait()
9191
XCTAssertGreaterThan(result, 0, "should have stopped before any request made")
92-
XCTAssertLessThan(result, maxTimes, "should have stopped before \(maxTimes)")
92+
XCTAssertLessThanOrEqual(result, maxTimes, "should have stopped at \(maxTimes)")
9393
try server.stop().wait()
9494
try eventLoopGroup.syncShutdownGracefully()
9595
}

0 commit comments

Comments
 (0)