-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject tunnel settings in RelaySelectorWrapper #6721
Inject tunnel settings in RelaySelectorWrapper #6721
Conversation
d06ce88
to
b405566
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 11 files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 11 of 11 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @buggmagnet)
ios/MullvadVPNTests/MullvadREST/Relay/RelaySelectorWrapperTests.swift
line 90 at r1 (raw file):
} func testCanSelectRelayWithMultihopOffAndDaitaOn() throws {
This test seem to indirectly test the same thing as before, but using multihopWithoutDaitaConstraints
for a test that explicitly states MultihopOffAndDaitaOn
is a little confusing.
b405566
to
b4dbcba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @buggmagnet)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rablador)
ios/MullvadVPNTests/MullvadREST/Relay/RelaySelectorWrapperTests.swift
line 90 at r1 (raw file):
Previously, rablador (Jon Petersson) wrote…
This test seem to indirectly test the same thing as before, but using
multihopWithoutDaitaConstraints
for a test that explicitly statesMultihopOffAndDaitaOn
is a little confusing.
You're right, the test was completely bogus, I fixed it, thanks for catching that !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
b4dbcba
to
d326fb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
d326fb3
to
cb9b474
Compare
🚨 End to end tests failed. Please check the failed workflow run. |
This PR changes
RelaySelectorWrapper
to not create tunnel settings instances by itself anymore.Instead, we now pass tunnel settings when we need to select a relay to always rely upon settings that were read from cache.
This fixes a bug where saved user settings would otherwise not be respected when upgrading the app to a new version.
This change is