mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-10 15:02:06 -05:00
Resolve race condition with the clock tests
This commit is contained in:
parent
49d7ad8564
commit
8b87b36ed3
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ test('cycle', function (t) {
|
||||||
var rt = new Runtime();
|
var rt = new Runtime();
|
||||||
var c = new Clock(rt);
|
var c = new Clock(rt);
|
||||||
|
|
||||||
t.strictEqual(c.projectTimer(), 0);
|
t.ok(c.projectTimer() <= 0.001);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
c.resetProjectTimer();
|
c.resetProjectTimer();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
Loading…
Reference in a new issue