Skip to content

Commit

Permalink
Fix test when run in parallel (#3181)
Browse files Browse the repository at this point in the history
testConfigurationHasActualPortAfterStart fails when tests are run in
parallel with "Unknown command `VaporTests.ServerTests/testConfigurationHasActualPortAfterStart`".
  • Loading branch information
glbrntt committed Apr 30, 2024
1 parent e5cb0ab commit e87730e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tests/VaporTests/ServerTests.swift
Expand Up @@ -1411,6 +1411,7 @@ final class ServerTests: XCTestCase {

func testConfigurationHasActualPortAfterStart() throws {
let app = Application(.testing)
app.environment.arguments = ["serve"]
app.http.server.configuration.port = 0
defer { app.shutdown() }
try app.start()
Expand Down

0 comments on commit e87730e

Please sign in to comment.