Skip to content

Commit 0aebc11

Browse files
committed
Fix assrtion and add comment
1 parent 23028bd commit 0aebc11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/plugin/migrate/src/internalClusterTest/java/org/elasticsearch/system_indices/action/SystemDataStreamMigrationIT.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,10 @@ public void testMigrateSystemDataStream() throws Exception {
171171
assertThat(indexMetadata.getCreationVersion(), is(IndexVersion.current()));
172172
}
173173

174+
// Migrate action does not migrate the failure store indices
175+
// here we check that they are preserved.
174176
List<Index> failureIndices = dataStream.getFailureIndices();
175-
assertThat(failureIndices, hasSize(failureIndices.size()));
177+
assertThat(failureIndices, hasSize(1));
176178
for (Index failureIndex : failureIndices) {
177179
IndexMetadata indexMetadata = finalMetadata.index(failureIndex);
178180
assertThat(indexMetadata.isSystem(), is(true));

0 commit comments

Comments
 (0)