diff --git a/server/src/test/java/org/opensearch/gateway/remote/ClusterMetadataManifestTests.java b/server/src/test/java/org/opensearch/gateway/remote/ClusterMetadataManifestTests.java index eafa191581d65..d05dd4780ff1d 100644 --- a/server/src/test/java/org/opensearch/gateway/remote/ClusterMetadataManifestTests.java +++ b/server/src/test/java/org/opensearch/gateway/remote/ClusterMetadataManifestTests.java @@ -90,7 +90,7 @@ public void testClusterMetadataManifestSerializationEqualsHashCode() { builder.nodeId(randomAlphaOfLength(10)); break; case 6: - builder.committed(randomBoolean()); + builder.committed(!manifest.isCommitted()); break; case 7: builder.indices(randomUploadedIndexMetadataList());