Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed May 15, 2023
1 parent f2aecc1 commit 225d890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/SocketTests/SocketTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ final class SocketTests: XCTestCase {
try await Task.sleep(nanoseconds: 2_000_000_000)
await client.close()
let clientEvents = try await clientEventsTask.value
XCTAssertEqual(clientEvents.count, 5)
XCTAssertEqual("\(clientEvents)", "[Socket.Socket.Event.write, Socket.Socket.Event.read, Socket.Socket.Event.didRead(41), Socket.Socket.Event.read, Socket.Socket.Event.close]")
XCTAssertEqual(clientEvents.count, 4)
XCTAssertEqual("\(clientEvents)", "[Socket.Socket.Event.write, Socket.Socket.Event.read, Socket.Socket.Event.didRead(41), Socket.Socket.Event.close]")
await server.close()
let serverEvents = try await serverEventsTask.value
XCTAssertEqual(serverEvents.count, 2)
Expand Down

0 comments on commit 225d890

Please sign in to comment.