Skip to content

Instantly share code, notes, and snippets.

@freynaud
Created May 17, 2011 20:56
Show Gist options
  • Save freynaud/977380 to your computer and use it in GitHub Desktop.
Save freynaud/977380 to your computer and use it in GitHub Desktop.
2nd method passes ?
public class InvocCountTimeout {
@Test(invocationCount=5,timeOut=1000)
public void willFailOk() throws InterruptedException{
Thread.sleep(2000);
}
@Test(invocationCount=5,threadPoolSize=5,timeOut=1000)
public void willPassBug() throws InterruptedException{
Thread.sleep(2000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment