mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
15 lines
518 B
Swift
15 lines
518 B
Swift
import XCTest
|
|
|
|
// The single long-lived test method: it starts the server and parks the runner
|
|
// in a run loop so the simulator process stays alive serving the protocol.
|
|
final class RunnerTestCase: XCTestCase {
|
|
func testServeForever() throws {
|
|
// A failed automation call must never end the test: the server has to
|
|
// keep serving so the host can recover and retry.
|
|
continueAfterFailure = true
|
|
let server = try Server()
|
|
server.start()
|
|
RunLoop.current.run()
|
|
}
|
|
}
|