Skip to content

Commit

Permalink
Make verifyConnectingOverTCPAfterUDPAttempts more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Nov 21, 2024
1 parent 50283f0 commit 75265ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/MullvadVPNUITests/Pages/TunnelControlPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 75265ad

Please sign in to comment.