Bug 618233 - Temporarily disable random orange on Windows. a=orange
authorPhilipp von Weitershausen <philipp@weitershausen.de>
Thu, 09 Dec 2010 22:53:08 -0800
changeset 59066 75ced65beeb48b58a41d0de6cb9b2e14ac5e9b29
parent 59065 a5bbcbc3bd3251269489f9c10a5bcb750d77e43e
child 59067 70728ca65a0704b1a80ad513e24df9c43cfd5a7c
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersorange
bugs618233
milestone2.0b8pre
Bug 618233 - Temporarily disable random orange on Windows. a=orange
services/sync/tests/unit/head_appinfo.js.in
services/sync/tests/unit/test_jpakeclient.js
--- a/services/sync/tests/unit/head_appinfo.js.in
+++ b/services/sync/tests/unit/head_appinfo.js.in
@@ -66,8 +66,14 @@ weaveService.wrappedJSObject.addResource
 
 // Some tests hang on OSX debug builds. See bug 604565.
 let DISABLE_TESTS_BUG_604565 = false;
 #ifdef XP_MACOSX
 #ifdef MOZ_DEBUG_SYMBOLS
 DISABLE_TESTS_BUG_604565 = true;
 #endif
 #endif
+
+// test_jpakeclient.js produces random failures on Windows 7
+let DISABLE_TESTS_BUG_618233 = false;
+#ifdef XP_WIN
+DISABLE_TESTS_BUG_618233 = true;
+#endif
--- a/services/sync/tests/unit/test_jpakeclient.js
+++ b/services/sync/tests/unit/test_jpakeclient.js
@@ -107,16 +107,19 @@ ServerChannel.prototype = {
 
 };
 
 
 const DATA = {"msg": "eggstreamly sekrit"};
 const POLLINTERVAL = 50;
 
 function run_test() {
+  if (DISABLE_TESTS_BUG_618233)
+    return;
+
   Svc.Prefs.set("jpake.serverURL", "http://localhost:8080/");
   Svc.Prefs.set("jpake.pollInterval", POLLINTERVAL);
   Svc.Prefs.set("jpake.maxTries", 5);
   Svc.Prefs.set("jpake.firstMsgMaxTries", 5);
   // Ensure clean up
   Svc.Obs.add("profile-before-change", function() {
     Svc.Prefs.resetBranch("");
   });