Bug 738992: add some debug logging to try and figure out why this test fails intermittently
authorGavin Sharp <gavin@gavinsharp.com>
Tue, 08 May 2012 09:45:32 -0700
changeset 95774 69b20b2d47f15d42a40d5e3e60f004071e7028de
parent 95773 f6f8d92907b578c8bf49e32bc5d0d04d1ef17b5e
child 95775 9803383567bdd5524a99de6bad4889c6c1f2e3f2
push id1439
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 20:19:22 +0000
treeherdermozilla-aurora@ea74834dccd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs738992
milestone15.0a1
Bug 738992: add some debug logging to try and figure out why this test fails intermittently
netwerk/test/browser/browser_NetUtil.js
--- a/netwerk/test/browser/browser_NetUtil.js
+++ b/netwerk/test/browser/browser_NetUtil.js
@@ -56,16 +56,17 @@ function test_asyncFetchBadCert() {
     NetUtil.asyncFetch(channel, function (aInputStream, aStatusCode, aRequest) {
       ok(!Components.isSuccessCode(aStatusCode), "request failed");
       ok(aRequest instanceof Ci.nsIHttpChannel, "request is an nsIHttpChannel");
 
       is(gCertErrorDialogShown, 0, "cert error dialog was not shown");
 
       // Now try a valid request
       NetUtil.asyncFetch("https://example.com", function (aInputStream, aStatusCode, aRequest) {
+        info("aStatusCode for valid request: " + aStatusCode);
         ok(Components.isSuccessCode(aStatusCode), "request succeeded");
         ok(aRequest instanceof Ci.nsIHttpChannel, "request is an nsIHttpChannel");
         ok(aRequest.requestSucceeded, "HTTP request succeeded");
   
         is(gCertErrorDialogShown, 0, "cert error dialog was not shown");
 
         Services.wm.removeListener(listener);
         nextTest();