File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
main/java/org/elasticsearch/test
test/java/org/elasticsearch/test/test Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -373,18 +373,24 @@ protected final boolean enableWarningsCheck() {
373373
374374 protected final void beforeInternal () throws Exception {
375375 final Scope currentClusterScope = getCurrentClusterScope ();
376+ Callable <Void > setup = () -> {
377+ cluster ().beforeTest (random (), getPerTestTransportClientRatio ());
378+ cluster ().wipe (excludeTemplates ());
379+ randomIndexTemplate ();
380+ return null ;
381+ };
376382 switch (currentClusterScope ) {
377383 case SUITE :
378384 assert SUITE_SEED != null : "Suite seed was not initialized" ;
379385 currentCluster = buildAndPutCluster (currentClusterScope , SUITE_SEED );
386+ RandomizedContext .current ().runWithPrivateRandomness (SUITE_SEED , setup );
380387 break ;
381388 case TEST :
382389 currentCluster = buildAndPutCluster (currentClusterScope , randomLong ());
390+ setup .call ();
383391 break ;
384392 }
385- cluster ().beforeTest (random (), getPerTestTransportClientRatio ());
386- cluster ().wipe (excludeTemplates ());
387- randomIndexTemplate ();
393+
388394 }
389395
390396 private void printTestMessage (String message ) {
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ public class SuiteScopeClusterIT extends ESIntegTestCase {
4141 @ Test
4242 @ SuppressForbidden (reason = "repeat is a feature here" )
4343 @ Repeat (iterations = 10 , useConstantSeed = true )
44- @ AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/issues/36202" )
4544 public void testReproducible () throws IOException {
4645 if (ITER ++ == 0 ) {
4746 CLUSTER_SEED = cluster ().seed ();
You can’t perform that action at this time.
0 commit comments