We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c33257f commit b3acb6dCopy full SHA for b3acb6d
ios/MullvadVPNUITests/RelayTests.swift
@@ -194,12 +194,12 @@ class RelayTests: LoggedInWithTimeUITestCase {
194
.tapDisconnectButton()
195
let capturedStreams = stopPacketCapture()
196
197
+ // The capture will contain several streams where `other_addr` contains the IP the device connected to
198
+ // One stream will be for the source port, the other for the destination port
199
let streamFromPeeerToRelay = try XCTUnwrap(
- capturedStreams
- .filter { $0.destinationAddress == connectedToIPAddress }.first
200
+ capturedStreams.filter { $0.destinationAddress == connectedToIPAddress && $0.destinationPort == 80 }.first
201
)
202
- XCTAssertTrue(streamFromPeeerToRelay.destinationPort == 80)
203
XCTAssertTrue(streamFromPeeerToRelay.transportProtocol == .TCP)
204
}
205
0 commit comments