Skip to content
Snippets Groups Projects
Commit 32c4f61e authored by akwizgran's avatar akwizgran
Browse files

Merge branch...

Merge branch '670-uncaught-exceptions-do-not-print-a-stack-trace-in-introductionintegrationtest' into 'master'

Print stack trace for uncaught exceptions during tests for easier debugging

Closes #670

See merge request !355
parents 5674ee2d 6e046649
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,6 @@ import static org.junit.Assert.assertEquals;
public abstract class BriarIntegrationTest extends BriarTestCase {
// TODO maybe we could add uncaught exception handlers for other threads here (#670)
protected void assertGroupCount(MessageTracker tracker, GroupId g,
long msgCount, long unreadCount, long latestMsg)
throws DbException {
......
......@@ -10,6 +10,7 @@ public abstract class BriarTestCase {
// Ensure exceptions thrown on worker threads cause tests to fail
UncaughtExceptionHandler fail = new UncaughtExceptionHandler() {
public void uncaughtException(Thread thread, Throwable throwable) {
throwable.printStackTrace();
fail();
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment