Skip to content
Permalink
Browse files

[misc] test improvement for java 8 on windows

  • Loading branch information...
rusher committed Jul 19, 2019
1 parent ed04e0a commit 384ea709d98b022d194399718646aaa0c44a3ec5
Showing with 12 additions and 11 deletions.
  1. +12 −11 src/test/java/org/mariadb/jdbc/BaseTest.java
@@ -315,19 +315,20 @@ public static void afterClassBaseTest() throws SQLException {
e.printStackTrace();
}
}
Iterator<Thread> it = Thread.getAllStackTraces().keySet().iterator();
Thread thread;

while (it.hasNext()) {
thread = it.next();
if (thread.getName().contains("MariaDb-bulk-")) {
if (thread.getState() != State.WAITING) {
//print stack trace to console.
for (StackTraceElement ste : thread.getStackTrace()) {
System.out.println(ste);
if (!Platform.isWindows()) {
Iterator<Thread> it = Thread.getAllStackTraces().keySet().iterator();
Thread thread;
while (it.hasNext()) {
thread = it.next();
if (thread.getName().contains("MariaDb-bulk-")) {
if (thread.getState() != State.WAITING) {
//print stack trace to console.
for (StackTraceElement ste : thread.getStackTrace()) {
System.out.println(ste);
}
}
assertEquals(State.WAITING, thread.getState());
}
assertEquals(State.WAITING, thread.getState());
}
}
}

0 comments on commit 384ea70

Please sign in to comment.
You can’t perform that action at this time.