aboutsummaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-12-17 00:28:48 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-12-17 00:31:01 -0700
commitc7f509feb7b8d290469178e7d4c940f973c658eb (patch)
treefe8bacd63e5e0b68b51ea8fa0017fb271c51f53d /Tests
parent6ddc93125e8a47217901a2daea645ae62ce02ddd (diff)
use swift-format
use swift-format
Diffstat (limited to 'Tests')
-rw-r--r--Tests/swiftGopherClientTests/swiftGopherClientTests.swift47
1 files changed, 24 insertions, 23 deletions
diff --git a/Tests/swiftGopherClientTests/swiftGopherClientTests.swift b/Tests/swiftGopherClientTests/swiftGopherClientTests.swift
index a687a3e..dfa46b8 100644
--- a/Tests/swiftGopherClientTests/swiftGopherClientTests.swift
+++ b/Tests/swiftGopherClientTests/swiftGopherClientTests.swift
@@ -5,33 +5,34 @@
// Created by Navan Chauhan on 12/12/23.
//
-import XCTest
import NIO
+import XCTest
@testable import swiftGopherClient
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)")
- }
- }
-
- wait(for: [expectation], timeout: 30)
+
+ 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)
+ }
}