Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit f3aeb2e

Browse files
author
Marek Potociar
committed
Added volatile to intermittently failing test.
- RequestScopeTest.CloseMeFactory has a field updated potentially from different threads. Change-Id: I5d97c3677b3b9448cfcf1f7e37c6c828cf086690 Signed-off-by: Marek Potociar <[email protected]>
1 parent 996c725 commit f3aeb2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/common/RequestScopeTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected void configure() {
7777
});
7878
}
7979

80-
public static interface CloseMe {
80+
public interface CloseMe {
8181

8282
String eval();
8383

@@ -86,7 +86,7 @@ public static interface CloseMe {
8686

8787
public static class CloseMeFactory implements Factory<CloseMe> {
8888

89-
public static boolean closed = false;
89+
public static volatile boolean closed = false;
9090

9191
@Override
9292
public CloseMe provide() {

0 commit comments

Comments
 (0)