diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-07-28 00:02:07 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-07-28 00:02:07 -0600 |
commit | dfbc19e5e78d87ec735839333a647cae409f53eb (patch) | |
tree | 9849417658ccdc71be35a5be5e687caedb60d535 /Tests | |
parent | 35f2f975fd0ff66f87bca546dcd12fdd6fc5869f (diff) |
swift-format
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/swiftGopherClientTests/swiftGopherClientTests.swift | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/Tests/swiftGopherClientTests/swiftGopherClientTests.swift b/Tests/swiftGopherClientTests/swiftGopherClientTests.swift index 47d0f24..707ff32 100644 --- a/Tests/swiftGopherClientTests/swiftGopherClientTests.swift +++ b/Tests/swiftGopherClientTests/swiftGopherClientTests.swift @@ -12,30 +12,30 @@ import XCTest final class GopherClientTests: XCTestCase { - override func setUp() { - super.setUp() - } - - override func tearDown() { - super.tearDown() - } - - func testGopherServerConnection() { - let expectation = XCTestExpectation( - description: "Connect and receive response from Gopher server") - let client = GopherClient() - client.sendRequest(to: "gopher.floodgap.com", message: "\r\n") { result in - switch result { - case .success(_): - expectation.fulfill() - case .failure(let error): - print("Error \(error)") - } + override func setUp() { + super.setUp() + } + + override func tearDown() { + super.tearDown() + } + + func testGopherServerConnection() { + let expectation = XCTestExpectation( + description: "Connect and receive response from Gopher server") + let client = GopherClient() + client.sendRequest(to: "gopher.floodgap.com", message: "\r\n") { result in + switch result { + case .success(_): + expectation.fulfill() + case .failure(let error): + print("Error \(error)") + } + } + + wait(for: [expectation], timeout: 30) } - wait(for: [expectation], timeout: 30) - } - func testGopherClientAsync() async throws { let client = GopherClient() let reply = try await client.sendRequest(to: "gopher.navan.dev", message: "\r\n") |