mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Don't swallow interrupts.
This commit is contained in:
@@ -77,7 +77,7 @@ public class LockFairnessTest extends TestCase {
|
||||
Thread.sleep(sleepTime);
|
||||
finished.add(this);
|
||||
} catch(InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
fail();
|
||||
} finally {
|
||||
lock.readLock().unlock();
|
||||
}
|
||||
@@ -101,7 +101,7 @@ public class LockFairnessTest extends TestCase {
|
||||
Thread.sleep(sleepTime);
|
||||
finished.add(this);
|
||||
} catch(InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
fail();
|
||||
} finally {
|
||||
lock.writeLock().unlock();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class WindowsShutdownManagerImplTest extends ShutdownManagerImplTest {
|
||||
Thread.sleep(100);
|
||||
finished = true;
|
||||
} catch(InterruptedException e) {
|
||||
// Don't finish
|
||||
fail();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user