Skip to content

Commit d4db058

Browse files
committed
Populate RandomizedContext for virtual thread group
1 parent d766c1e commit d4db058

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ private static void forceImmutableCollectionsSeed(long seed) {
443443
* doesn't have a {@link RandomizedContext}. There's probably a way to do this
444444
* that isn't a nasty hack, but that's a job for another day.
445445
*/
446+
@SuppressForbidden(reason = "I'm not proud of it, but I don't want to spend spacetime looking at carrotsearch :)")
446447
@BeforeClass
447448
public static void fudgeRandomContextForVirtualThreads() {
448449
final RandomizedContext current = RandomizedContext.current();
@@ -468,6 +469,7 @@ public static void fudgeRandomContextForVirtualThreads() {
468469
}
469470
}
470471

472+
@SuppressForbidden(reason = "I'm not proud of it, but I don't want to spend spacetime looking at carrotsearch :)")
471473
@AfterClass
472474
public static void cleanUpMess() {
473475
if (virtualThreadsContext.get() != null) {

0 commit comments

Comments
 (0)