From e4fc81f11bd4f72383697c76a75d117f47e9a808 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 27 Jul 2024 23:59:24 -0600 Subject: add async version --- Tests/swiftGopherClientTests/swiftGopherClientTests.swift | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Tests') 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) + } } -- cgit v1.2.3