Skip to content

Commit

Permalink
Call tearDown to prevent Address already in use
Browse files Browse the repository at this point in the history
Signed-off-by: jansupol <jan.supol@oracle.com>
  • Loading branch information
jansupol committed Nov 15, 2022
1 parent bb65db4 commit 7ff071b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.glassfish.jersey.test.JerseyTest;
import org.jboss.weld.environment.se.Weld;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.parallel.Execution;
Expand Down Expand Up @@ -98,9 +99,13 @@ public static void after() throws Exception {
}

@Override
@AfterAll
@AfterEach
public void tearDown() throws Exception {
super.tearDown();
}

@AfterAll
public void report() {
System.out.printf("SYNC: %d, ASYNC: %d, STRAIGHT: %d%n",
parameterizedCounter.intValue(), parameterizedAsyncCounter.intValue(), straightCounter.intValue());
}
Expand Down

0 comments on commit 7ff071b

Please sign in to comment.