{"action":"closed","issue":{"url":"https://api.github.com/repos/junit-team/junit4/issues/1250","repository_url":"https://api.github.com/repos/junit-team/junit4","labels_url":"https://api.github.com/repos/junit-team/junit4/issues/1250/labels{/name}","comments_url":"https://api.github.com/repos/junit-team/junit4/issues/1250/comments","events_url":"https://api.github.com/repos/junit-team/junit4/issues/1250/events","html_url":"https://github.com/junit-team/junit4/issues/1250","id":136677576,"number":1250,"title":"Timeout Test and Rule Annotation bug","user":{"login":"rob0229","id":5331028,"avatar_url":"https://avatars.githubusercontent.com/u/5331028?v=3","gravatar_id":"","url":"https://api.github.com/users/rob0229","html_url":"https://github.com/rob0229","followers_url":"https://api.github.com/users/rob0229/followers","following_url":"https://api.github.com/users/rob0229/following{/other_user}","gists_url":"https://api.github.com/users/rob0229/gists{/gist_id}","starred_url":"https://api.github.com/users/rob0229/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob0229/subscriptions","organizations_url":"https://api.github.com/users/rob0229/orgs","repos_url":"https://api.github.com/users/rob0229/repos","events_url":"https://api.github.com/users/rob0229/events{/privacy}","received_events_url":"https://api.github.com/users/rob0229/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-26T11:54:07Z","updated_at":"2016-05-10T07:08:24Z","closed_at":"2016-05-10T07:08:24Z","body":"I created a simple test that has a 'for loop' where a public int getPrice() function is called 2.1 billion times as a test of the timeout. When I set the timeout for 10ms, it will correctly fail the test because the test takes 6200 milliseconds to run on my older machine. The problem is when I I increase the timeout to 100 ms. The test passes. I played with other values and I could recreate the issue each time. I also set the timeout as a @Rule and had the same behavior. I plan to look into the code this evening. What better way to spend a Friday night?"}}