mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-03 02:22:32 +00:00
ci: the iOS simulator tests set private routing to unknown servers only, so the app can reach the test names server
Master's 3126d9b54 made the iOS app's default private routing "always". Name lookups then go through a preset server, which can't reach the test SMP server on the runner's localhost, so every iOS case that resolves a SimpleX name would fail. The desktop and Android tests already set "unknown" before the first launch; the iOS smoke test now writes the same into the app group's defaults after installing the app, and the app applies it when its chat starts.
This commit is contained in:
1 parent
65a8b7d2f5
commit
e7e8b0abf3
1 file changed
+4
@@ -339,6 +339,10 @@ search_in_new_chat() {
|
||||
}
|
||||
|
||||
xcrun simctl install "$SIM_UDID" "$app"
|
||||
# private routing to unknown servers only: the preset servers that would proxy name lookups can't reach the test SMP
|
||||
# server on localhost
|
||||
prefs=$(xcrun simctl get_app_container "$SIM_UDID" "$bundle_id" group.chat.simplex.app)/Library/Preferences/group.chat.simplex.app
|
||||
xcrun simctl spawn "$SIM_UDID" defaults write "$prefs" networkSMPProxyMode -string unknown
|
||||
xcrun simctl launch "$SIM_UDID" "$bundle_id"
|
||||
|
||||
# onboarding to the chat list
|
||||
|
||||
Reference in new issue
Block a user