{"action":"created","issue":{"url":"https://api.github.com/repos/cucumber/cucumber-js/issues/537","repository_url":"https://api.github.com/repos/cucumber/cucumber-js","labels_url":"https://api.github.com/repos/cucumber/cucumber-js/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/cucumber-js/issues/537/comments","events_url":"https://api.github.com/repos/cucumber/cucumber-js/issues/537/events","html_url":"https://github.com/cucumber/cucumber-js/issues/537","id":139976955,"number":537,"title":"ability to set timeout within step function body","user":{"login":"tommysullivan","id":1911377,"avatar_url":"https://avatars.githubusercontent.com/u/1911377?v=3","gravatar_id":"","url":"https://api.github.com/users/tommysullivan","html_url":"https://github.com/tommysullivan","followers_url":"https://api.github.com/users/tommysullivan/followers","following_url":"https://api.github.com/users/tommysullivan/following{/other_user}","gists_url":"https://api.github.com/users/tommysullivan/gists{/gist_id}","starred_url":"https://api.github.com/users/tommysullivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommysullivan/subscriptions","organizations_url":"https://api.github.com/users/tommysullivan/orgs","repos_url":"https://api.github.com/users/tommysullivan/repos","events_url":"https://api.github.com/users/tommysullivan/events{/privacy}","received_events_url":"https://api.github.com/users/tommysullivan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2016-03-10T18:46:36Z","updated_at":"2016-12-22T14:35:20Z","closed_at":"2016-12-19T15:58:35Z","body":"sometimes we wish to have a dynamically determined timeout, such as one expressed within the Gherkin itself and matched on; or sometimes based on some other dynamic behavior that occurs within the step definition function body itself.\n\nI propose something like callback.timeout(10000), which would have to be called before any default timeout (global or as 2nd param to the step definition {timeout:x} form). If it is set before that, then the default timeout is cancelled and a new timeout set where the timer starts at that instant.\n\nThe other thing is that in IntelliJ the plugin does not work when the { timeout: x } 2nd param is used, and one cannot jump from Gherkin to the step definition. Solving for dynamic timeout would indirectly create a workaround for the plugin deficiency.\n"},"comment":{"url":"https://api.github.com/repos/cucumber/cucumber-js/issues/comments/268811637","html_url":"https://github.com/cucumber/cucumber-js/issues/537#issuecomment-268811637","issue_url":"https://api.github.com/repos/cucumber/cucumber-js/issues/537","id":268811637,"user":{"login":"tommysullivan","id":1911377,"avatar_url":"https://avatars.githubusercontent.com/u/1911377?v=3","gravatar_id":"","url":"https://api.github.com/users/tommysullivan","html_url":"https://github.com/tommysullivan","followers_url":"https://api.github.com/users/tommysullivan/followers","following_url":"https://api.github.com/users/tommysullivan/following{/other_user}","gists_url":"https://api.github.com/users/tommysullivan/gists{/gist_id}","starred_url":"https://api.github.com/users/tommysullivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommysullivan/subscriptions","organizations_url":"https://api.github.com/users/tommysullivan/orgs","repos_url":"https://api.github.com/users/tommysullivan/repos","events_url":"https://api.github.com/users/tommysullivan/events{/privacy}","received_events_url":"https://api.github.com/users/tommysullivan/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T14:35:20Z","updated_at":"2016-12-22T14:35:20Z","body":"Then my error message would be nice:\r\n\r\n```\r\nThen the operation completes within \"2\" minutes - failed - wanted 2 minutes but got 2 minutes and 3 seconds.\r\n```"}}
{"actor":{"display_login":"tommysullivan"}}