Check offline imports in the smoke tests
With the network down, a request that goes through the system proxy cannot reach 127.0.0.1, which is how a healthy engine looked unreachable. Both smoke tests now start under a proxy pointed at a black hole, import a TIFF through the real upload and preview path, and assert the launcher and app window bypass proxies.
This commit is contained in:
@@ -237,12 +237,15 @@ open_window() {
|
||||
while IFS= read -r name; do
|
||||
if browser="$(command -v "$name" 2>/dev/null)"; then
|
||||
say "Opening the app window with $name"
|
||||
# --no-proxy-server: the window only ever loads 127.0.0.1, and an
|
||||
# offline machine cannot resolve the system proxy it would otherwise use.
|
||||
setsid "$browser" \
|
||||
--app="$url" \
|
||||
--user-data-dir="$DATA_DIR/window-profile" \
|
||||
--class=Luminary \
|
||||
--no-first-run \
|
||||
--no-default-browser-check \
|
||||
--no-proxy-server \
|
||||
>/dev/null 2>&1 &
|
||||
return 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user