Skip to content

Commit 59ca1fd

Browse files
committed
Using fixed UUIDs for testing
1 parent d3c3fcc commit 59ca1fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/PetstoreConsumerTests/Test_Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ final class Test_Client: XCTestCase {
3636
}
3737

3838
func testListPets_200() async throws {
39-
let requestUUID = UUID()
40-
let responseUUID = UUID()
39+
let requestUUID = UUID(uuidString: "da6811e6-112f-494e-8bdd-7f8b2367cb66")!
40+
let responseUUID = UUID(uuidString: "b1c601c1-8963-460b-9fe4-fda2f73da64f")!
4141
transport = .init { (request: HTTPRequest, body: HTTPBody?, baseURL: URL, operationID: String) in
4242
XCTAssertEqual(operationID, "listPets")
4343
XCTAssertEqual(

Tests/PetstoreConsumerTests/Test_Server.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ final class Test_Server: XCTestCase {
2828
}
2929

3030
func testListPets_200() async throws {
31-
let requestUUID = UUID()
32-
let responseUUID = UUID()
31+
let requestUUID = UUID(uuidString: "da6811e6-112f-494e-8bdd-7f8b2367cb66")!
32+
let responseUUID = UUID(uuidString: "b1c601c1-8963-460b-9fe4-fda2f73da64f")!
3333
client = .init(listPetsBlock: { input in
3434
XCTAssertEqual(input.query.limit, 24)
3535
XCTAssertEqual(input.query.habitat, .water)

0 commit comments

Comments
 (0)