{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/1643","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/1643/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1643/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/1643/events","html_url":"https://github.com/mochajs/mocha/issues/1643","id":66915338,"number":1643,"title":"Error: timeout of 1.7976931348623157e+308ms exceeded.","user":{"login":"callumacrae","id":472830,"avatar_url":"https://avatars.githubusercontent.com/u/472830?v=3","gravatar_id":"","url":"https://api.github.com/users/callumacrae","html_url":"https://github.com/callumacrae","followers_url":"https://api.github.com/users/callumacrae/followers","following_url":"https://api.github.com/users/callumacrae/following{/other_user}","gists_url":"https://api.github.com/users/callumacrae/gists{/gist_id}","starred_url":"https://api.github.com/users/callumacrae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callumacrae/subscriptions","organizations_url":"https://api.github.com/users/callumacrae/orgs","repos_url":"https://api.github.com/users/callumacrae/repos","events_url":"https://api.github.com/users/callumacrae/events{/privacy}","received_events_url":"https://api.github.com/users/callumacrae/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T15:25:12Z","updated_at":"2015-04-07T16:11:55Z","closed_at":"2015-04-07T16:11:55Z","body":"I set `this.timeout(Number.MAX_VALUE);` to see what would happen, and my tests instantly fail with the following error:\r\n\r\n```\r\nError: timeout of 1.7976931348623157e+308ms exceeded. Ensure the done() callback is being called in this test.\r\n```\r\n\r\nI definitely didn't wait that long"},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/90625446","html_url":"https://github.com/mochajs/mocha/issues/1643#issuecomment-90625446","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/1643","id":90625446,"user":{"login":"dasilvacontin","id":1260830,"avatar_url":"https://avatars.githubusercontent.com/u/1260830?v=3","gravatar_id":"","url":"https://api.github.com/users/dasilvacontin","html_url":"https://github.com/dasilvacontin","followers_url":"https://api.github.com/users/dasilvacontin/followers","following_url":"https://api.github.com/users/dasilvacontin/following{/other_user}","gists_url":"https://api.github.com/users/dasilvacontin/gists{/gist_id}","starred_url":"https://api.github.com/users/dasilvacontin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasilvacontin/subscriptions","organizations_url":"https://api.github.com/users/dasilvacontin/orgs","repos_url":"https://api.github.com/users/dasilvacontin/repos","events_url":"https://api.github.com/users/dasilvacontin/events{/privacy}","received_events_url":"https://api.github.com/users/dasilvacontin/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T16:11:55Z","updated_at":"2015-04-07T16:11:55Z","body":"Too big for `setTimeout`.\r\n```\r\nfunction sayHi () {\r\n  console.log('hi')\r\n}\r\nsetTimeout(sayHi, Number.MAX_VALUE)\r\n> hi\r\n```\r\nRelated: http://stackoverflow.com/questions/3468607/why-does-settimeout-break-for-large-millisecond-delay-values\r\n\r\nI don't think it's useful/necessary to support timeouts bigger than 24.8 days, and it's probably a better idea to keep consistency with `setTimeout`'s behavior.\r\n\r\nIf someone disagrees, please reopen the issue / let me know."}}