From 2cbff46b0b7133a39311f6572faa4d31b7dbdf15 Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Tue, 1 May 2012 16:38:22 -0700 Subject: [PATCH] fix http auth test in Firefox --- packages/http/httpcall_tests.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/http/httpcall_tests.js b/packages/http/httpcall_tests.js index 15e9fb7f6b..1882c7cf28 100644 --- a/packages/http/httpcall_tests.js +++ b/packages/http/httpcall_tests.js @@ -227,7 +227,11 @@ testAsyncMulti("httpcall - http auth", [ // password prompt. So we don't test auth failure, only // success. - var password = Meteor.uuid().replace(/[^0-9a-zA-Z]/g, ''); + // Random password breaks in Firefox, because Firefox incorrectly + // uses cached credentials even if we supply different ones: + // https://bugzilla.mozilla.org/show_bug.cgi?id=654348 + var password = 'rocks'; + //var password = Meteor.uuid().replace(/[^0-9a-zA-Z]/g, ''); Meteor.http.call( "GET", url_prefix()+"/login?"+password, { auth: "meteor:"+password },