Skip to content

Commit

Permalink
fix ServeCommand tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawright11 committed Jul 27, 2024
1 parent e9db94e commit a093146
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tests/HTTP/Commands/ServeCommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ final class ServeCommandTests: TestCase<TestApp> {
}

func testServe() async throws {
let exp = expectation(description: "")
Schedule.task { exp.fulfill() }.everySecond()
app.get("/foo", use: { _ in "hello" })
app.background("--port", "3000")
try await Http.get("http://127.0.0.1:3000/foo")
Expand All @@ -26,7 +24,7 @@ final class ServeCommandTests: TestCase<TestApp> {
app.background("--workers", "2", "--schedule", "--migrate")
try await Http.get("http://127.0.0.1:3000/foo")
.assertBody("hello")

XCTAssertEqual(Q.workers, 2)
XCTAssertTrue(Schedule.isStarted)
}
Expand Down

0 comments on commit a093146

Please sign in to comment.