diff --git a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/slm/SnapshotRetentionConfigurationTests.java b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/slm/SnapshotRetentionConfigurationTests.java index 2ac6b633c0f09..cf4672d183ada 100644 --- a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/slm/SnapshotRetentionConfigurationTests.java +++ b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/slm/SnapshotRetentionConfigurationTests.java @@ -349,7 +349,7 @@ private SnapshotInfo makeFailureInfo(long startTime) { } assert failureCount == failures.size(); SnapshotInfo snapInfo = new SnapshotInfo( - new Snapshot(REPO, new SnapshotId("snap-fail-" + randomAlphaOfLength(3), "uuid-fail")), + new Snapshot(REPO, new SnapshotId("snap-fail-" + randomUUID(), "uuid-fail")), Collections.singletonList("foo-fail"), Collections.singletonList("bar-fail"), Collections.emptyList(), @@ -377,7 +377,7 @@ private SnapshotInfo makePartialInfo(long startTime) { } assert failureCount == failures.size(); SnapshotInfo snapInfo = new SnapshotInfo( - new Snapshot(REPO, new SnapshotId("snap-fail-" + randomAlphaOfLength(3), "uuid-fail")), + new Snapshot(REPO, new SnapshotId("snap-fail-" + randomUUID(), "uuid-fail")), Collections.singletonList("foo-fail"), Collections.singletonList("bar-fail"), Collections.emptyList(),