File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test-framework/junit5/src/main/java/io/quarkus/test/junit Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ class MockSupport {
1313
1414 private static final Deque <List <Object >> contexts = new ArrayDeque <>();
1515
16- static void pushContext () {
16+ static synchronized void pushContext () {
1717 contexts .push (new ArrayList <>());
1818 }
1919
20- static void popContext () {
20+ static synchronized void popContext () {
2121 if (contexts .isEmpty ()) {
2222 return ; // can happen on error in QuarkusTestResourceLifecycleManagers etc.
2323 }
@@ -38,7 +38,7 @@ static void popContext() {
3838 }
3939 }
4040
41- static <T > void installMock (T instance , T mock ) {
41+ static synchronized <T > void installMock (T instance , T mock ) {
4242 //due to class loading issues we can't access the interface directly
4343 List <Object > inst = contexts .peek ();
4444 if (inst == null ) {
You can’t perform that action at this time.
0 commit comments