Skip to content

Commit

Permalink
Using fixed UUIDs for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gentges committed Oct 7, 2024
1 parent d3c3fcc commit 59ca1fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tests/PetstoreConsumerTests/Test_Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ final class Test_Client: XCTestCase {
}

func testListPets_200() async throws {
let requestUUID = UUID()
let responseUUID = UUID()
let requestUUID = UUID(uuidString: "da6811e6-112f-494e-8bdd-7f8b2367cb66")!
let responseUUID = UUID(uuidString: "b1c601c1-8963-460b-9fe4-fda2f73da64f")!
transport = .init { (request: HTTPRequest, body: HTTPBody?, baseURL: URL, operationID: String) in
XCTAssertEqual(operationID, "listPets")
XCTAssertEqual(
Expand Down
4 changes: 2 additions & 2 deletions Tests/PetstoreConsumerTests/Test_Server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ final class Test_Server: XCTestCase {
}

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

0 comments on commit 59ca1fd

Please sign in to comment.