From 1172a5bb24a29fb13e8c63e4a4fd72d6a61dcc42 Mon Sep 17 00:00:00 2001 From: Shane Tomlinson <stomlinson@mozilla.com> Date: Tue, 24 Apr 2012 12:25:22 +0100 Subject: [PATCH] Fix the broken test in check_registration. It was starting the registration check twice, meaning there were two concurrent polls happening. issue #1464 --- .../static/test/cases/controllers/check_registration.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/static/test/cases/controllers/check_registration.js b/resources/static/test/cases/controllers/check_registration.js index 16fe3dfbe..1aeb870a8 100644 --- a/resources/static/test/cases/controllers/check_registration.js +++ b/resources/static/test/cases/controllers/check_registration.js @@ -47,18 +47,18 @@ controller.startCheck(); } - asyncTest("user validation with mustAuth result", function() { + asyncTest("user validation with mustAuth result - callback with email, type and known set to true", function() { xhr.useResult("mustAuth"); createController("waitForUserValidation"); register("authenticate", function(msg, info) { + // we want the email, type and known all sent back to the caller so that + // this information does not need to be queried again. equal(info.email, "registered@testuser.com", "correct email"); ok(info.type, "type sent with info"); ok(info.known, "email is known"); start(); }); controller.startCheck(); - - testVerifiedUserEvent("authenticate", "User Must Auth"); }); asyncTest("user validation with pending->complete result ~3 seconds", function() { -- GitLab