Bug: Intermittent toolkit/components/normandy/test/browser/browser_Heartbeat.js | Test timed out -
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-07-04 00:00:20+00:00
Resolved: 2021-07-27 17:03:59+00:00

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

---
```
INFO - TEST-START | toolkit/components/normandy/test/browser/browser_Heartbeat.js
[task 2021-07-03T22:56:47.889Z] 22:56:47     INFO - GECKO(13754) | [CodeCoverage] Setting handlers for process 13986.
[task 2021-07-03T22:57:31.502Z] 22:57:31     INFO - TEST-INFO | started process screentopng
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - TEST-INFO | screentopng: exit 0
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - Buffered messages logged at 22:56:46
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - Entering test bound setup
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - Buffered messages logged at 22:56:47
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - Leaving test bound setup
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - Entering test bound 
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Correct number of notifications open - 1 == 1 - 
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Correct number of stars - 5 == 5 - 
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Engagement button not shown - 0 == 0 - 
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Learn more url correct - "https://example.org/learnmore" == "https://example.org/learnmore" - 
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Learn more label correct - "Learn More" == "Learn More" - 
[task 2021-07-03T22:57:31.736Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Message is correct - "test " == "test " - 
[task 2021-07-03T22:57:31.737Z] 22:57:31     INFO - Buffered messages logged at 22:56:48
[task 2021-07-03T22:57:31.737Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Learn more link opened the right url - "https://example.org/learnmore" == "https://example.org/learnmore" - 
[task 2021-07-03T22:57:31.737Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | payload field offeredTS is a number - "number" == "number" - 
[task 2021-07-03T22:57:31.737Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | payload field learnMoreTS is a number - "number" == "number" - 
[task 2021-07-03T22:57:31.738Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | payload field closedTS is a number - "number" == "number" - 
[task 2021-07-03T22:57:31.739Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | element 0 is type "number" - "number" == "number" - 
[task 2021-07-03T22:57:31.740Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | element 1 is type "number" - "number" == "number" - 
[task 2021-07-03T22:57:31.744Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | element 2 is type "number" - "number" == "number" - 
[task 2021-07-03T22:57:31.745Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | element 3 is type "number" - "number" == "number" - 
[task 2021-07-03T22:57:31.747Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | element 4 is type "number" - "number" == "number" - 
[task 2021-07-03T22:57:31.748Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | element 0 is less than or equal to element 1 - 0 <= 1625353007575 - 
[task 2021-07-03T22:57:31.749Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | element 1 is less than or equal to element 2 - 1625353007575 <= 1625353007622 - 
[task 2021-07-03T22:57:31.750Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | element 2 is less than or equal to element 3 - 1625353007622 <= 1625353008048 - 
[task 2021-07-03T22:57:31.755Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | element 3 is less than or equal to element 4 - 1625353008048 <= 1625353008052 - 
[task 2021-07-03T22:57:31.755Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | No notifications left - 0 == 0 - 
[task 2021-07-03T22:57:31.756Z] 22:57:31     INFO - Leaving test bound 
[task 2021-07-03T22:57:31.757Z] 22:57:31     INFO - Entering test bound 
[task 2021-07-03T22:57:31.757Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Stars not shown - 0 == 0 - 
[task 2021-07-03T22:57:31.764Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Engagement button added - {"_inheritedElements":{".button-text":{"_lastFormattedAccessKey":null},".button-menu-dropmarker":null},"initializedAttributeInheritance":true,"buttonInfo":{"label":"Click me!","callback":"() => {\n          // Let the consumer know user engaged.\n          this.maybeNotifyHeartbeat(\"Engaged\");\n\n          this.userEngaged({\n            type: \"button\",\n            flowId: this.options.flowId,\n          });\n\n          // Return true so that the notification bar doesn't close itself since\n          // we have a thank you message to show.\n          return true;\n        }"}} == true - 
[task 2021-07-03T22:57:31.765Z] 22:57:31     INFO - TEST-PASS | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Engagement button has correct label - "Click me!" == "Click me!" - 
[task 2021-07-03T22:57:31.766Z] 22:57:31     INFO - Buffered messages finished
[task 2021-07-03T22:57:31.766Z] 22:57:31     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Test timed out - 
[task 2021-07-03T22:57:31.768Z] 22:57:31     INFO - GECKO(13754) | MEMORY STAT | vsize 3231MB | residentFast 567MB | heapAllocated 149MB
[task 2021-07-03T22:57:31.770Z] 22:57:31     INFO - TEST-OK | toolkit/components/normandy/test/browser/browser_Heartbeat.js | took 45021ms
[task 2021-07-03T22:57:31.775Z] 22:57:31     INFO - checking window state
[task 2021-07-03T22:57:31.777Z] 22:57:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-07-03T22:57:31.778Z] 22:57:31     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Found a browser window after previous test timed out - 
[task 2021-07-03T22:57:31.779Z] 22:57:31     INFO - GECKO(13754) | must wait for focus
[task 2021-07-03T22:57:31.780Z] 22:57:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-07-03T22:57:31.781Z] 22:57:31     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/normandy/test/browser/browser_Heartbeat.js | Uncaught exception received from previously timed out test - at resource://testing-common/BrowserTestUtils.jsm:500 - Error: The window unloaded while we were waiting for the browser to load - this should never happen.
[task 2021-07-03T22:57:31.781Z] 22:57:31     INFO - Stack trace:
[task 2021-07-03T22:57:31.782Z] 22:57:31     INFO - listener@resource://testing-common/BrowserTestUtils.jsm:500:15
[task 2021-07-03T22:57:31.782Z] 22:57:31     INFO - TEST-START | toolkit/components/normandy/test/browser/browser_LogManager.js
```