Skip to content

Commit a093146

Browse files
fix ServeCommand tests
1 parent e9db94e commit a093146

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Tests/HTTP/Commands/ServeCommandTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ final class ServeCommandTests: TestCase<TestApp> {
1010
}
1111

1212
func testServe() async throws {
13-
let exp = expectation(description: "")
14-
Schedule.task { exp.fulfill() }.everySecond()
1513
app.get("/foo", use: { _ in "hello" })
1614
app.background("--port", "3000")
1715
try await Http.get("http://127.0.0.1:3000/foo")
@@ -26,7 +24,7 @@ final class ServeCommandTests: TestCase<TestApp> {
2624
app.background("--workers", "2", "--schedule", "--migrate")
2725
try await Http.get("http://127.0.0.1:3000/foo")
2826
.assertBody("hello")
29-
27+
3028
XCTAssertEqual(Q.workers, 2)
3129
XCTAssertTrue(Schedule.isStarted)
3230
}

0 commit comments

Comments
 (0)