edx/edx-platform — pull request #2612 by wedaly (2014-02-14 21:49:36+00:00)
Title: Fixed intermittent failure in XQueue stub unit test

The XQueue stub test would occasionally fail, because:
1) The test patched a POST request triggered by a timer.
2) The test set the timer delay to 0.
3) The test would wait for POST to be called.

Very rarely, the timer would take too long to fire, and the test would fail. This fixes the test by replacing the `Timer.start()` call with a fake timer implementation that fires immediately.

@flowerhack