Skip to content

Commit 4459ebb

Browse files
committed
Call tearDown to prevent Address already in use
Signed-off-by: jansupol <[email protected]>
1 parent bb65db4 commit 4459ebb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/helloworld-weld/src/test/java/org/glassfish/jersey/examples/helloworld/RequestScopedResourceTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.glassfish.jersey.test.JerseyTest;
2323
import org.jboss.weld.environment.se.Weld;
2424
import org.junit.jupiter.api.AfterAll;
25+
import org.junit.jupiter.api.AfterEach;
2526
import org.junit.jupiter.api.BeforeAll;
2627
import org.junit.jupiter.api.TestInstance;
2728
import org.junit.jupiter.api.parallel.Execution;
@@ -98,9 +99,13 @@ public static void after() throws Exception {
9899
}
99100

100101
@Override
101-
@AfterAll
102+
@AfterEach
102103
public void tearDown() throws Exception {
103104
super.tearDown();
105+
}
106+
107+
@AfterAll
108+
public void report() {
104109
System.out.printf("SYNC: %d, ASYNC: %d, STRAIGHT: %d%n",
105110
parameterizedCounter.intValue(), parameterizedAsyncCounter.intValue(), straightCounter.intValue());
106111
}

0 commit comments

Comments
 (0)