Closed Bug 1091453 Opened 10 years ago Closed 10 years ago

[Calendar] Intermittent Failure TEST-UNEXPECTED-FAIL | calendar/test/unit/views/single_day_test.js | Views.SingleDay #_render - TypeError: this.connection is null (app://calendar.gaiamobile.org/js/db.js:153)

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S8 (7Nov)

People

(Reporter: julienw, Assigned: mmedeiros)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

https://treeherder.mozilla.org/ui/logviewer.html#?job_id=259999&repo=gaia-try

12:20:02 INFO - JavaScript error: app://calendar.gaiamobile.org/js/db.js, line 153: TypeError: this.connection is null
12:20:02 INFO - TEST-UNEXPECTED-FAIL | calendar/test/unit/views/single_day_test.js | Views.SingleDay #_render - TypeError: this.connection is null (app://calendar.gaiamobile.org/js/db.js:153)
12:20:02 INFO - Error: TypeError: this.connection is null (app://calendar.gaiamobile.org/js/db.js:153)
12:20:02 INFO - at onerror (app://calendar.gaiamobile.org/common/vendor/mocha/mocha.js:4959:10)
12:20:02 INFO - TEST-UNEXPECTED-FAIL | calendar/test/unit/views/single_day_test.js | Views.SingleDay "after each" hook - dayObserver.on.restore is not a function
12:20:02 INFO - TypeError: dayObserver.on.restore is not a function
12:20:02 INFO - at (anonymous) (app://calendar.gaiamobile.org/test/unit/views/single_day_test.js:44:5)
12:20:02 INFO - at wrapper (app://calendar.gaiamobile.org/common/test/mocha_generators.js:62:19)
12:20:02 INFO - at run (app://calendar.gaiamobile.org/common/vendor/mocha/mocha.js:3709:7)
12:20:02 INFO - at next (app://calendar.gaiamobile.org/common/vendor/mocha/mocha.js:3973:5)
12:20:02 INFO - at (anonymous) (app://calendar.gaiamobile.org/common/vendor/mocha/mocha.js:3984:5)
12:20:02 INFO - at (anonymous) (app://calendar.gaiamobile.org/common/vendor/mocha/mocha.js:4932:28)
Hey Kevin, do you have an idea about this?
Flags: needinfo?(kgrandon)
Similar error as bug 1082904.
Flags: needinfo?(kgrandon)
See Also: → 1082904
Assignee: nobody → mmedeiros
I executed the unit tests 40x times and was not able to reproduce it after I added the `db.open` and `db.close` calls. so I guess this should fix it.
Attachment #8516231 - Flags: review?(gaye)
Blocks: 1091779
Blocks: 1082904
Target Milestone: --- → 2.1 S8 (7Nov)
Comment on attachment 8516231 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25775

Stealing review at :daleharvey's request since Gareth is busy and this looks straightforward/sane by inspection.
Attachment #8516231 - Flags: review?(gaye) → review+
landed on master: https://github.com/mozilla-b2g/gaia/commit/80c1f30acf7857ff314ad69b4c41bd9d7b9c6386
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: