aboutsummaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-07-27 23:59:24 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-07-27 23:59:24 -0600
commite4fc81f11bd4f72383697c76a75d117f47e9a808 (patch)
treea4015e7a15fc1ee1f54a0538fc5433b16c79847e /Tests
parent79913541f514a54a475afac1963830dd4129ae15 (diff)
add async version
Diffstat (limited to 'Tests')
-rw-r--r--Tests/swiftGopherClientTests/swiftGopherClientTests.swift6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/swiftGopherClientTests/swiftGopherClientTests.swift b/Tests/swiftGopherClientTests/swiftGopherClientTests.swift
index dfa46b8..47d0f24 100644
--- a/Tests/swiftGopherClientTests/swiftGopherClientTests.swift
+++ b/Tests/swiftGopherClientTests/swiftGopherClientTests.swift
@@ -35,4 +35,10 @@ final class GopherClientTests: XCTestCase {
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")
+ XCTAssertNotNil(reply)
+ }
}