Bug 1058424 - Fixes network error tests in the FxA Profile Client r=mattn
authorvladikoff <vlad.filippov@gmail.com>
Fri, 29 Aug 2014 10:25:41 -0700
changeset 224230 8d48127a01e35c4ca53768bd7c89c3110dbcf8a2
parent 224229 924887478138b25dc6cb015eeb89c887d2c93ef4
child 224231 048321be093ec43e14591970f19be409f28103cb
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattn
bugs1058424
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1058424 - Fixes network error tests in the FxA Profile Client r=mattn
services/fxaccounts/tests/xpcshell/test_profile_client.js
--- a/services/fxaccounts/tests/xpcshell/test_profile_client.js
+++ b/services/fxaccounts/tests/xpcshell/test_profile_client.js
@@ -120,17 +120,16 @@ add_test(function networkErrorResponse (
   client.fetchProfile()
     .then(
       null,
       function (e) {
         do_check_eq(e.name, "FxAccountsProfileClientError");
         do_check_eq(e.code, null);
         do_check_eq(e.errno, ERRNO_NETWORK);
         do_check_eq(e.error, ERROR_NETWORK);
-        do_check_true(e.message.indexOf("NS_ERROR_UNKNOWN_HOST") >= 0);
         run_next_test();
       }
     );
 });
 
 add_test(function unsupportedMethod () {
   let client = new FxAccountsProfileClient(PROFILE_OPTIONS);