We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0834204 commit 03412e3Copy full SHA for 03412e3
FlyingSocks/Tests/SocketAddressTests.swift
@@ -62,8 +62,8 @@ final class SocketAddressTests: XCTestCase {
62
}
63
64
func testAddress_DecodesIP4() throws {
65
- var addr = Socket.makeAddressINET(port: 1080)
66
- addr.sin_addr = try Socket.makeInAddr(fromIP4: "192.168.0.1")
+ let addr = try Socket.makeAddressINET(fromIP4: "192.168.0.1",
+ port: 1080)
67
68
XCTAssertEqual(
69
try Socket.makeAddress(from: addr.makeStorage()),
0 commit comments