summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPNUITests/RelayTests.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/ios/MullvadVPNUITests/RelayTests.swift b/ios/MullvadVPNUITests/RelayTests.swift
index a8fe69c349..e4e9e87be8 100644
--- a/ios/MullvadVPNUITests/RelayTests.swift
+++ b/ios/MullvadVPNUITests/RelayTests.swift
@@ -194,12 +194,12 @@ class RelayTests: LoggedInWithTimeUITestCase {
.tapDisconnectButton()
let capturedStreams = stopPacketCapture()
+ // The capture will contain several streams where `other_addr` contains the IP the device connected to
+ // One stream will be for the source port, the other for the destination port
let streamFromPeeerToRelay = try XCTUnwrap(
- capturedStreams
- .filter { $0.destinationAddress == connectedToIPAddress }.first
+ capturedStreams.filter { $0.destinationAddress == connectedToIPAddress && $0.destinationPort == 80 }.first
)
- XCTAssertTrue(streamFromPeeerToRelay.destinationPort == 80)
XCTAssertTrue(streamFromPeeerToRelay.transportProtocol == .TCP)
}