diff options
| author | Navan Chauhan <navanchauhan@gmail.com> | 2024-07-27 23:59:24 -0600 | 
|---|---|---|
| committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-07-27 23:59:24 -0600 | 
| commit | e4fc81f11bd4f72383697c76a75d117f47e9a808 (patch) | |
| tree | a4015e7a15fc1ee1f54a0538fc5433b16c79847e /Tests/swiftGopherClientTests | |
| parent | 79913541f514a54a475afac1963830dd4129ae15 (diff) | |
add async version
Diffstat (limited to 'Tests/swiftGopherClientTests')
| -rw-r--r-- | Tests/swiftGopherClientTests/swiftGopherClientTests.swift | 6 | 
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) +    }  } | 
