Resolve race condition with the clock tests

This commit is contained in:
Andrew Sliwinski 2016-10-24 12:03:43 -04:00
parent 49d7ad8564
commit 8b87b36ed3

View file

@ -19,7 +19,7 @@ test('cycle', function (t) {
var rt = new Runtime();
var c = new Clock(rt);
t.strictEqual(c.projectTimer(), 0);
t.ok(c.projectTimer() <= 0.001);
setTimeout(function () {
c.resetProjectTimer();
setTimeout(function () {