From 24dc3986ce46d12d6a27fbd7e8767a0112ee788c Mon Sep 17 00:00:00 2001 From: Nick Knize Date: Wed, 3 Feb 2021 21:30:01 -0600 Subject: [PATCH] [TEST] fix DeleteDataStreamRequestTests failure (#37) This commit fixes DeleteDataStreamRequestTests.testDeleteSnapshottingDataStream unit test failure by passing SnapshotsInProgress.Entry.SUCCESS in the createEntrymethod. Signed-off-by: Peter Nied --- .../admin/indices/datastream/DeleteDataStreamRequestTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/action/admin/indices/datastream/DeleteDataStreamRequestTests.java b/server/src/test/java/org/elasticsearch/action/admin/indices/datastream/DeleteDataStreamRequestTests.java index a899b97a65e..62438e4c0aa 100644 --- a/server/src/test/java/org/elasticsearch/action/admin/indices/datastream/DeleteDataStreamRequestTests.java +++ b/server/src/test/java/org/elasticsearch/action/admin/indices/datastream/DeleteDataStreamRequestTests.java @@ -136,7 +136,7 @@ public class DeleteDataStreamRequestTests extends AbstractWireSerializingTestCas private SnapshotsInProgress.Entry createEntry(String dataStreamName, String repo, boolean partial) { return new SnapshotsInProgress.Entry(new Snapshot(repo, new SnapshotId("", "")), false, partial, - SnapshotsInProgress.State.STARTED, Collections.emptyList(), Collections.singletonList(dataStreamName), 0, 1, + SnapshotsInProgress.State.SUCCESS, Collections.emptyList(), Collections.singletonList(dataStreamName), 0, 1, ImmutableOpenMap.of(), null, null, null); }