Skip to content

Commit 03412e3

Browse files
committed
SocketAddress test
1 parent 0834204 commit 03412e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FlyingSocks/Tests/SocketAddressTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ final class SocketAddressTests: XCTestCase {
6262
}
6363

6464
func testAddress_DecodesIP4() throws {
65-
var addr = Socket.makeAddressINET(port: 1080)
66-
addr.sin_addr = try Socket.makeInAddr(fromIP4: "192.168.0.1")
65+
let addr = try Socket.makeAddressINET(fromIP4: "192.168.0.1",
66+
port: 1080)
6767

6868
XCTAssertEqual(
6969
try Socket.makeAddress(from: addr.makeStorage()),

0 commit comments

Comments
 (0)