Bug: Intermittent uriloader/exthandler/tests/mochitest/browser_download_preferred_action.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-02-03 07:56:28+00:00
Resolved: 2022-04-12 17:08:46+00:00

**Filed by:** nfay [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=366567147&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RVLUtl8rSeybTQpvi6-_Pg/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2022-02-03T06:53:00.745Z] 06:53:00     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js
<...>
[task 2022-02-03T06:53:51.765Z] 06:53:51     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | Download should complete successfully - 
[task 2022-02-03T06:53:51.766Z] 06:53:51     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | Download should never be launched from panel - 
[task 2022-02-03T06:53:51.766Z] 06:53:51     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | Download should be saved to disk - 
[task 2022-02-03T06:53:51.767Z] 06:53:51     INFO - Testing download with mime-type binary/octet-stream and extension xml, preferred action "Use System Default," and no Content-Disposition header.
[task 2022-02-03T06:53:51.768Z] 06:53:51     INFO - Buffered messages logged at 06:53:51
[task 2022-02-03T06:53:51.768Z] 06:53:51     INFO - Preparing for download...
[task 2022-02-03T06:53:51.769Z] 06:53:51     INFO - Start download of https://example.com/browser/uriloader/exthandler/tests/mochitest/mime_type_download.sjs?contentType=binary/octet-stream&extension=xml
[task 2022-02-03T06:53:51.770Z] 06:53:51     INFO - Wait for download to finish...
[task 2022-02-03T06:53:51.770Z] 06:53:51     INFO - Download changed!
[task 2022-02-03T06:53:51.773Z] 06:53:51     INFO - Download changed!
[task 2022-02-03T06:53:51.773Z] 06:53:51     INFO - Download succeeded or errored
[task 2022-02-03T06:53:51.774Z] 06:53:51     INFO - Wait for file to be launched in external application...
[task 2022-02-03T06:53:51.774Z] 06:53:51     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | The file binary/octet-stream should be launched with an external application. - 
[task 2022-02-03T06:53:51.775Z] 06:53:51     INFO - Checking for saved file...
[task 2022-02-03T06:53:51.775Z] 06:53:51     INFO - Cleaning up...
[task 2022-02-03T06:53:51.776Z] 06:53:51     INFO - Deleting file /tmp/Temp-701c142f-a9e1-4a2a-bedc-581eabc6aa17/testsavedir3879907767/mime_type_download.sjs...
[task 2022-02-03T06:53:51.776Z] 06:53:51     INFO - Removing download from list...
[task 2022-02-03T06:53:51.777Z] 06:53:51     INFO - Clearing settings...
[task 2022-02-03T06:53:51.777Z] 06:53:51     INFO - Asserting results...
[task 2022-02-03T06:53:51.778Z] 06:53:51     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | Download should complete successfully - 
[task 2022-02-03T06:53:51.778Z] 06:53:51     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | Download should never be launched from panel - 
[task 2022-02-03T06:53:51.779Z] 06:53:51     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | Download should be saved to disk - 
[task 2022-02-03T06:53:51.779Z] 06:53:51     INFO - Leaving test bound test_download_preferred_action
[task 2022-02-03T06:53:51.780Z] 06:53:51     INFO - Buffered messages finished
[task 2022-02-03T06:53:51.781Z] 06:53:51     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.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-02-03T06:53:51.781Z] 06:53:51     INFO - GECKO(14584) | MEMORY STAT | vsize 11700MB | residentFast 550MB | heapAllocated 310MB
[task 2022-02-03T06:53:51.782Z] 06:53:51     INFO - TEST-OK | uriloader/exthandler/tests/mochitest/browser_download_preferred_action.js | took 50586ms
[task 2022-02-03T06:53:51.782Z] 06:53:51     INFO - checking window state
[task 2022-02-03T06:53:51.783Z] 06:53:51     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_download_privatebrowsing.js

```