File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/SwiftAwsLambdaTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class LambdaTest: XCTestCase {
79
79
}
80
80
}
81
81
let signal = Signal . ALRM
82
- let maxTimes = 50
82
+ let maxTimes = 1000
83
83
let configuration = Lambda . Configuration ( lifecycle: . init( maxTimes: maxTimes, stopSignal: signal) )
84
84
let eventLoopGroup = MultiThreadedEventLoopGroup ( numberOfThreads: System . coreCount)
85
85
let future = Lambda . runAsync ( eventLoopGroup: eventLoopGroup, handler: MyHandler ( ) , configuration: configuration)
@@ -89,7 +89,7 @@ class LambdaTest: XCTestCase {
89
89
}
90
90
let result = try future. wait ( )
91
91
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) " )
93
93
try server. stop ( ) . wait ( )
94
94
try eventLoopGroup. syncShutdownGracefully ( )
95
95
}
You can’t perform that action at this time.
0 commit comments