summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2024-11-21 09:30:37 +0100
committerBug Magnet <marco.nikic@mullvad.net>2024-11-27 10:45:06 +0100
commit4ec823039f98697b7ae4dc1debbe02ceff988ce0 (patch)
tree082880b3cb84854422e731f20d90120bafe4ed9b /ios
parent9d7b599b2b536494cdb8405a52e3836662daf90d (diff)
downloadmullvadvpn-4ec823039f98697b7ae4dc1debbe02ceff988ce0.tar.xz
mullvadvpn-4ec823039f98697b7ae4dc1debbe02ceff988ce0.zip
Make verifyConnectingOverTCPAfterUDPAttempts more readable
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPNUITests/Pages/TunnelControlPage.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadVPNUITests/Pages/TunnelControlPage.swift b/ios/MullvadVPNUITests/Pages/TunnelControlPage.swift
index 5b9bf715c0..fc8f6c044a 100644
--- a/ios/MullvadVPNUITests/Pages/TunnelControlPage.swift
+++ b/ios/MullvadVPNUITests/Pages/TunnelControlPage.swift
@@ -132,7 +132,7 @@ class TunnelControlPage: Page {
// Should do four connection attempts but due to UI bug sometimes only two are displayed, sometimes all four
if connectionAttempts.count == 4 { // Expected retries flow
for (attemptIndex, attempt) in connectionAttempts.enumerated() {
- if attemptIndex == 0 || attemptIndex == 1 || attemptIndex == 2 {
+ if attemptIndex < 3 {
XCTAssertEqual(attempt.protocolName, "UDP")
} else if attemptIndex == 3 {
XCTAssertEqual(attempt.protocolName, "TCP")