Bug 1632115 - disable TestMailCookie on windows (faking a channel is needed, but hard to do). r=rjl
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Wed, 29 Apr 2020 13:30:45 +0300
changeset 38074 62005c97509ce7ffb9f8c00f1d4d6f7d6486a033
parent 38073 db3637b3740e629903afa03266c15c77a2fddb43
child 38075 d7148a4246747373d1a49d70c55d813bd85d87e5
push id2595
push userclokep@gmail.com
push dateMon, 04 May 2020 19:02:04 +0000
treeherdercomm-beta@f53913797371 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrjl
bugs1632115
Bug 1632115 - disable TestMailCookie on windows (faking a channel is needed, but hard to do). r=rjl
mailnews/base/test/TestMailCookie.cpp
--- a/mailnews/base/test/TestMailCookie.cpp
+++ b/mailnews/base/test/TestMailCookie.cpp
@@ -116,17 +116,23 @@ void InitPrefsMail(nsIPrefBranch *aPrefB
 
   // XXX TODO: We need to follow bug 1617611 for the real fix.
   mozilla::Preferences::SetBool("network.cookie.sameSite.laxByDefault", false);
 
   mozilla::Preferences::SetBool(
       "network.cookieJarSettings.unblocked_for_testing", true);
 }
 
+#ifdef XP_WIN
+// Disabled on windows - see bug 1631780.
+// Unclear why it works on linux...
+TEST(DISABLED_TestMailCookie, TestMailCookieMain)
+#else
 TEST(TestMailCookie, TestMailCookieMain)
+#endif
 {
   nsresult rv0;
 
   nsCOMPtr<nsICookieService> cookieService =
       do_GetService(kCookieServiceCID, &rv0);
   ASSERT_TRUE(NS_SUCCEEDED(rv0));
 
   nsCOMPtr<nsIPrefBranch> prefBranch = do_GetService(kPrefServiceCID, &rv0);