Closed Bug 1032784 Opened 10 years ago Closed 10 years ago

Some MMI unit tests are broken

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S5 (4july)

People

(Reporter: rik, Assigned: rik)

References

Details

Attachments

(1 file)

1) [communications-dialer/test/unit/mmi_test.js] dialer/mmi Mmi message reply via UI Check request result: Uncaught Error: Error: expected null to equal 'success_mmi_msg' (http://test-agent.gaiamobile.org:8080/common/test/helper.js?time=1404218964053:31) at onerror (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4959:10) 2) [communications-dialer/test/unit/mmi_test.js] dialer/mmi Mmi message reply via UI Check sessionEnded null: Uncaught Error: Error: expected true to equal null (http://test-agent.gaiamobile.org:8080/common/test/helper.js?time=1404218964053:31) at onerror (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4959:10) 3) [communications-dialer/test/unit/mmi_test.js] dialer/mmi Mmi message reply via UI with multiple connections Check request result: Uncaught Error: Error: expected null to equal 'success_mmi_msg' (http://test-agent.gaiamobile.org:8080/common/test/helper.js?time=1404218964053:31) at onerror (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4959:10) 4) [communications-dialer/test/unit/mmi_test.js] dialer/mmi Mmi message reply via UI with multiple connections Check sessionEnded null: Uncaught Error: Error: expected true to equal null (http://test-agent.gaiamobile.org:8080/common/test/helper.js?time=1404218964053:31) at onerror (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4959:10) I've confirmed that this is because of bug 1021481. I also don't understand why it doesn't show up on Travis or TBPL.
Blocks: 1025631
Target Milestone: --- → 2.0 S5 (4july)
My patch for bug 1016885 contains a fix for this as I hit the problem while developing that one.
See Also: → 1016885
I've removed the changes regarding this bug from my patch for bug 1016885 because they caused issues on Travis. To sum it up I get this behavior currently: - Using 'app://communications.gaiamobile.org' works on Travis but fails locally - Using 'https://communications.gaiamobile.org:8080' works locally but fails on Travis Meh :-(
I'm trying this pull request to see what happens.
Assignee: nobody → anthony
Attachment #8450549 - Flags: review?(etienne)
Component: Gaia::Build → Gaia::Dialer
Attachment #8450549 - Flags: review?(etienne) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
(In reply to Gabriele Svelto [:gsvelto] from comment #2) > I've removed the changes regarding this bug from my patch for bug 1016885 > because they caused issues on Travis. To sum it up I get this behavior > currently: > > - Using 'app://communications.gaiamobile.org' works on Travis but fails > locally > > - Using 'https://communications.gaiamobile.org:8080' works locally but fails > on Travis > > Meh :-( The same happens for apps/settings/test/unit/panels/app_permissions/app_permissions_list_test.js But I'd like to understand why it works for travis... I tried to generate a new profile, ran make clean, updated my nightly, etc. Sherman, can you help about this?
Flags: needinfo?(shchen)
From what I know, there is a before_script for travis to prepare the environment before running tests, and changes made to support app protocol running on travis are here, https://github.com/mozilla-b2g/gaia/commit/43fd8f8bff1f774cf5e9f9d8d3bbcfa2d4a30367#diff-0ecff94ae42cf9ce8e3bffc22682d9c7L22 And for running tests locally, we may also point the location to app://test-agent.gaiamobile.org instead of http://test-agent.gaiamobile.org:8080.
Flags: needinfo?(shchen)
Thanks for pointing this Sherman, it was too obvious I guess. We should probably change bin/gaia-test then. And you should definitely have sent a mail to the mailing list :(
Ah... I forgot to change bin/gaia-test and mailing list as well, thanks Julien!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: