Bug: Intermittent [TV] browser/components/protections/test/browser/browser_protections_vpn.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. -
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-09-20 14:23:53+00:00
Resolved: 2022-11-15 17:04:53+00:00

**Filed by:** apavel [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=390933562&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/cdgRAAy1QxS8DWivzh66-Q/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/cdgRAAy1QxS8DWivzh66-Q/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2022-09-20T13:45:45.832Z] 13:45:45     INFO - TEST-START | browser/components/protections/test/browser/browser_protections_vpn.js
[task 2022-09-20T13:47:03.629Z] 13:47:03     INFO - TEST-INFO | started process screencapture
[task 2022-09-20T13:47:03.770Z] 13:47:03     INFO - TEST-INFO | screencapture: exit 0
[task 2022-09-20T13:47:03.770Z] 13:47:03     INFO - Buffered messages logged at 13:45:45
[task 2022-09-20T13:47:03.771Z] 13:47:03     INFO - Entering setup bound 
[task 2022-09-20T13:47:03.771Z] 13:47:03     INFO - Buffered messages logged at 13:45:46
[task 2022-09-20T13:47:03.771Z] 13:47:03     INFO - Leaving setup bound 
[task 2022-09-20T13:47:03.772Z] 13:47:03     INFO - Entering test bound testVPNCardVisibility
[task 2022-09-20T13:47:03.772Z] 13:47:03     INFO - Buffered messages logged at 13:45:52
[task 2022-09-20T13:47:03.772Z] 13:47:03     INFO - Enable showing the VPN card
[task 2022-09-20T13:47:03.773Z] 13:47:03     INFO - Buffered messages logged at 13:45:55
[task 2022-09-20T13:47:03.773Z] 13:47:03     INFO - Check that vpn card is hidden if neither the user's home nor current location is on the regions list.
[task 2022-09-20T13:47:03.774Z] 13:47:03     INFO - Buffered messages logged at 13:46:02
[task 2022-09-20T13:47:03.774Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN card is hidden. - true == true - 
[task 2022-09-20T13:47:03.775Z] 13:47:03     INFO - Check that vpn card is hidden if user's location is in the list of disallowed regions.
[task 2022-09-20T13:47:03.775Z] 13:47:03     INFO - Buffered messages logged at 13:46:03
[task 2022-09-20T13:47:03.775Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN card is hidden. - true == true - 
[task 2022-09-20T13:47:03.776Z] 13:47:03     INFO - Check that vpn card shows a different version if user has subscribed to Mozilla vpn.
[task 2022-09-20T13:47:03.776Z] 13:47:03     INFO - Buffered messages logged at 13:46:05
[task 2022-09-20T13:47:03.777Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN card is shown. - true == true - 
[task 2022-09-20T13:47:03.777Z] 13:47:03     INFO - VPN card should be hidden when vpn not enabled, though all other conditions are true
[task 2022-09-20T13:47:03.777Z] 13:47:03     INFO - Buffered messages logged at 13:46:06
[task 2022-09-20T13:47:03.778Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN card is hidden. - true == true - 
[task 2022-09-20T13:47:03.778Z] 13:47:03     INFO - Leaving test bound testVPNCardVisibility
[task 2022-09-20T13:47:03.779Z] 13:47:03     INFO - Entering test bound testVPNPromoBanner
[task 2022-09-20T13:47:03.779Z] 13:47:03     INFO - Buffered messages logged at 13:46:08
[task 2022-09-20T13:47:03.779Z] 13:47:03     INFO - Enable showing the VPN card and banner
[task 2022-09-20T13:47:03.780Z] 13:47:03     INFO - Buffered messages logged at 13:46:09
[task 2022-09-20T13:47:03.780Z] 13:47:03     INFO - Check that vpn banner is shown if user's region is supported
[task 2022-09-20T13:47:03.781Z] 13:47:03     INFO - Buffered messages logged at 13:46:21
[task 2022-09-20T13:47:03.781Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN banner is shown. - true == true - 
[task 2022-09-20T13:47:03.782Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | After showing the banner once, the pref to hide the VPN banner is flipped - 
[task 2022-09-20T13:47:03.782Z] 13:47:03     INFO - The banner does not show when the pref to hide it is flipped
[task 2022-09-20T13:47:03.783Z] 13:47:03     INFO - Buffered messages logged at 13:46:24
[task 2022-09-20T13:47:03.783Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN banner is hidden. - true == true - 
[task 2022-09-20T13:47:03.784Z] 13:47:03     INFO - Check that VPN banner is hidden if user's location is not on the regions list.
[task 2022-09-20T13:47:03.784Z] 13:47:03     INFO - Buffered messages logged at 13:46:26
[task 2022-09-20T13:47:03.784Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN banner is hidden. - true == true - 
[task 2022-09-20T13:47:03.785Z] 13:47:03     INFO - Check that VPN banner is hidden if user's location is in the disallowed regions list.
[task 2022-09-20T13:47:03.785Z] 13:47:03     INFO - Buffered messages logged at 13:46:31
[task 2022-09-20T13:47:03.786Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN banner is hidden. - true == true - 
[task 2022-09-20T13:47:03.786Z] 13:47:03     INFO - VPN banner should be hidden when vpn not enabled, though all other conditions are true
[task 2022-09-20T13:47:03.786Z] 13:47:03     INFO - Buffered messages logged at 13:46:32
[task 2022-09-20T13:47:03.787Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN banner is hidden. - true == true - 
[task 2022-09-20T13:47:03.787Z] 13:47:03     INFO - If user is subscribed to VPN already the promo banner should not show
[task 2022-09-20T13:47:03.788Z] 13:47:03     INFO - Buffered messages logged at 13:46:36
[task 2022-09-20T13:47:03.788Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN banner is hidden. - true == true - 
[task 2022-09-20T13:47:03.788Z] 13:47:03     INFO - Leaving test bound testVPNPromoBanner
[task 2022-09-20T13:47:03.789Z] 13:47:03     INFO - Entering test bound testVPNDoesNotShowChina
[task 2022-09-20T13:47:03.789Z] 13:47:03     INFO - Buffered messages logged at 13:46:38
[task 2022-09-20T13:47:03.789Z] 13:47:03     INFO - Enable showing the VPN card and banners
[task 2022-09-20T13:47:03.790Z] 13:47:03     INFO - Buffered messages logged at 13:46:43
[task 2022-09-20T13:47:03.790Z] 13:47:03     INFO - set home location to China, even though user is currently in the US, expect vpn card to be hidden
[task 2022-09-20T13:47:03.790Z] 13:47:03     INFO - Buffered messages logged at 13:46:47
[task 2022-09-20T13:47:03.791Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN banner is hidden. - true == true - 
[task 2022-09-20T13:47:03.791Z] 13:47:03     INFO - Buffered messages logged at 13:46:48
[task 2022-09-20T13:47:03.791Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN card is hidden. - true == true - 
[task 2022-09-20T13:47:03.792Z] 13:47:03     INFO - home region is US, but current location is China
[task 2022-09-20T13:47:03.792Z] 13:47:03     INFO - Buffered messages logged at 13:46:56
[task 2022-09-20T13:47:03.792Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN banner is hidden. - true == true - 
[task 2022-09-20T13:47:03.793Z] 13:47:03     INFO - Buffered messages logged at 13:47:03
[task 2022-09-20T13:47:03.793Z] 13:47:03     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_vpn.js | VPN card is hidden. - true == true - 
[task 2022-09-20T13:47:03.793Z] 13:47:03     INFO - Leaving test bound testVPNDoesNotShowChina
[task 2022-09-20T13:47:03.793Z] 13:47:03     INFO - Buffered messages finished
[task 2022-09-20T13:47:03.794Z] 13:47:03     INFO - TEST-UNEXPECTED-FAIL | browser/components/protections/test/browser/browser_protections_vpn.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. - 
[task 2022-09-20T13:47:03.794Z] 13:47:03     INFO - GECKO(4135) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2022-09-20T13:47:03.795Z] 13:47:03     INFO - GECKO(4135) | MEMORY STAT | vsize 7753MB | residentFast 276MB | heapAllocated 113MB
[task 2022-09-20T13:47:03.795Z] 13:47:03     INFO - TEST-OK | browser/components/protections/test/browser/browser_protections_vpn.js | took 77798ms
[task 2022-09-20T13:47:03.795Z] 13:47:03     INFO - checking window state
[task 2022-09-20T13:47:03.796Z] 13:47:03     INFO - GECKO(4135) | Completed ShutdownLeaks collections in process 4135
[task 2022-09-20T13:47:03.796Z] 13:47:03     INFO - TEST-START | Shutdown
```