{"action":"opened","issue":{"url":"https://api.github.com/repos/craftyjs/Crafty/issues/1119","repository_url":"https://api.github.com/repos/craftyjs/Crafty","labels_url":"https://api.github.com/repos/craftyjs/Crafty/issues/1119/labels{/name}","comments_url":"https://api.github.com/repos/craftyjs/Crafty/issues/1119/comments","events_url":"https://api.github.com/repos/craftyjs/Crafty/issues/1119/events","html_url":"https://github.com/craftyjs/Crafty/issues/1119","id":223609789,"number":1119,"title":"Indeterministic test causes CI server to fail sometimes","user":{"login":"mucaho","id":3935691,"avatar_url":"https://avatars0.githubusercontent.com/u/3935691?v=3","gravatar_id":"","url":"https://api.github.com/users/mucaho","html_url":"https://github.com/mucaho","followers_url":"https://api.github.com/users/mucaho/followers","following_url":"https://api.github.com/users/mucaho/following{/other_user}","gists_url":"https://api.github.com/users/mucaho/gists{/gist_id}","starred_url":"https://api.github.com/users/mucaho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mucaho/subscriptions","organizations_url":"https://api.github.com/users/mucaho/orgs","repos_url":"https://api.github.com/users/mucaho/repos","events_url":"https://api.github.com/users/mucaho/events{/privacy}","received_events_url":"https://api.github.com/users/mucaho/received_events","type":"User","site_admin":false},"labels":[{"id":64667,"url":"https://api.github.com/repos/craftyjs/Crafty/labels/kind:%20bug/fix","name":"kind: bug/fix","color":"e53935","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-23T03:33:54Z","updated_at":"2017-04-23T03:33:54Z","closed_at":null,"body":"The travis build recently failed so I restarted it, but the link I copied is invalid :(\r\nIt was something along the line\r\n```shell\r\n\"After <someNumber> frames triggered, EndTime <undefined> must be larger than StartTime <someNumber> \"\r\n```\r\n[Test in question](https://github.com/craftyjs/Crafty/blob/59d5b0189ed182936cbb9a089b70e989f7edd825/tests/unit/core/time.js#L150-L172) is \r\n```js\r\n  test(\"curTime\", function(_) {\r\n    _.expect(1);\r\n    var done = _.async(); // pause the QUnit so the timeout has time to complete.\r\n    var startTime, lastKnownTime;\r\n\r\n    var framesTriggered = 0;\r\n\r\n    Crafty.e(\"\").bind(\"EnterFrame\", function(params) {\r\n      framesTriggered++;\r\n      if (!startTime) {\r\n        startTime = params.gameTime;\r\n      } else {\r\n        lastKnownTime = params.gameTime;\r\n      }\r\n    });\r\n\r\n    setTimeout(function() {\r\n      var endTime = lastKnownTime;\r\n\r\n      _.ok(endTime > startTime, \"After \" + framesTriggered + \" frames triggered, EndTime \" + endTime + \" must be larger than StartTime \" + startTime);\r\n      done();\r\n    }, 200);\r\n  });\r\n```\r\nIf I remember correctly I've had this happen to me locally once or twice."}}
{"actor":{"display_login":"mucaho"}}