mozilla-services/android-sync — comment on commit 74ecea1f3f74cd54f1e9a1eebe8c16d1b176a1be
File: test/src/org/mozilla/android/sync/test/WaitHelperTest.java line 169
By rnewman:

It seems like you could lift out this whole try/performWait/catch recipe, turning each of these tests into a tiny snippet like:

expectExceptionAfterDelay(SHORT_WAIT, inThread(performNotifyErrorRunnable());
assertNotifiedError();