Skip to content

Commit 2ef463d

Browse files
committed
try to make it work v13.3e10
Signed-off-by: christian.lutnik <[email protected]>
1 parent f66f5f2 commit 2ef463d

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/pullrequest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
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

src/test/java/dev/openfeature/sdk/vmlens/VmLensTest.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import dev.openfeature.sdk.ImmutableContext;
99
import dev.openfeature.sdk.OpenFeatureAPI;
1010
import dev.openfeature.sdk.OpenFeatureAPITestUtil;
11-
import dev.openfeature.sdk.StringHook;
1211
import dev.openfeature.sdk.Value;
1312
import dev.openfeature.sdk.providers.memory.Flag;
1413
import 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
}

0 commit comments

Comments
 (0)