File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed
src/test/java/dev/openfeature/sdk/vmlens Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 4545 name : Verify
4646 run : mvn --batch-mode --update-snapshots --activate-profiles e2e,${{ matrix.build.profile }} verify
4747
48- - if : matrix.build.java == '17'
49- name : Verify with VmLens
50- run : mvn --batch-mode --update-snapshots --activate-profiles e2e,${{ matrix.build.profile }} vmlens-maven-plugin:test
48+ # - if: matrix.build.java == '17'
49+ # name: Verify with VmLens
50+ # run: mvn --batch-mode --update-snapshots --activate-profiles e2e,${{ matrix.build.profile }} vmlens-maven-plugin:test
5151
5252 - if : matrix.build.java != '17'
5353 name : Verify
Original file line number Diff line number Diff line change 88import dev .openfeature .sdk .ImmutableContext ;
99import dev .openfeature .sdk .OpenFeatureAPI ;
1010import dev .openfeature .sdk .OpenFeatureAPITestUtil ;
11- import dev .openfeature .sdk .StringHook ;
1211import dev .openfeature .sdk .Value ;
1312import dev .openfeature .sdk .providers .memory .Flag ;
1413import dev .openfeature .sdk .providers .memory .InMemoryProvider ;
@@ -73,6 +72,7 @@ void concurrentFlagEvaluations() {
7372 }
7473 }
7574
75+ /*
7676 @Test
7777 void concurrentFlagEvaluationsAndHookAdditions() {
7878 System.out.println("VmLensTest.concurrentFlagEvaluationsAndHookAdditions");
@@ -87,7 +87,7 @@ void concurrentFlagEvaluationsAndHookAdditions() {
8787 }
8888 // keep the linter happy
8989 assertTrue(true);
90- }
90+ }*/
9191
9292 @ Test
9393 void concurrentContextSetting () {
@@ -104,4 +104,17 @@ void concurrentContextSetting() {
104104 }
105105 }
106106 }
107+
108+ @ Test
109+ void plsFail () {
110+ System .out .println ("VmLensTest.plsFail" );
111+ try (AllInterleavings allInterleavings = new AllInterleavings ("pls fails" )) {
112+ while (allInterleavings .hasNext ()) {
113+ System .out .println ("iteration" );
114+ final int [] i = new int [1 ];
115+ Runner .runParallel (() -> i [0 ]++, () -> i [0 ]++);
116+ assertEquals (2 , i [0 ]);
117+ }
118+ }
119+ }
107120}
You can’t perform that action at this time.
0 commit comments