Skip to content

Commit 0cce180

Browse files
committed
Log exception
1 parent e2065f3 commit 0cce180

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/test/java/org/java_websocket/misc/OpeningHandshakeRejectionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void run() {
136136
}
137137
}
138138
} catch (Exception e) {
139-
fail("There should be no exception");
139+
fail("There should be no exception", e);
140140
}
141141
}
142142
});
@@ -278,7 +278,7 @@ public void onError(Exception ex) {
278278
finalThread.join();
279279

280280
if (!threadReturned[0]) {
281-
fail("Error");
281+
fail("Error. Thread did not yet return");
282282
}
283283
}
284284
}

src/test/java/org/java_websocket/protocols/ProtocolHandshakeRejectionTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ public void run() {
254254
}
255255
}
256256
} catch (Exception e) {
257-
e.printStackTrace();
258-
fail("There should be no exception");
257+
fail("There should be no exception", e);
259258
}
260259
}
261260
});

0 commit comments

Comments
 (0)