Skip to content

Instantly share code, notes, and snippets.

@samskiter
Created March 10, 2015 17:13
Show Gist options
  • Save samskiter/568cdb071ea8c4688a51 to your computer and use it in GitHub Desktop.
Save samskiter/568cdb071ea8c4688a51 to your computer and use it in GitHub Desktop.
private void waitForResponse()
{
signal = new CountDownLatch(1);
try
{
assertTrue(signal.await(30, TimeUnit.SECONDS));
}
catch (InterruptedException e)
{
fail();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment