Skip to content

Commit 19587fe

Browse files
Change BWC version for settings serialization to 6.1.0
relates 41925e1 relates #26878
1 parent 07c4959 commit 19587fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/java/org/elasticsearch/common/settings/SettingsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ public void testMissingValue() throws Exception {
738738

739739
public void testReadLegacyFromStream() throws IOException {
740740
BytesStreamOutput output = new BytesStreamOutput();
741-
output.setVersion(VersionUtils.getPreviousVersion(Version.CURRENT));
741+
output.setVersion(VersionUtils.getPreviousVersion(Version.V_6_1_0));
742742
output.writeVInt(5);
743743
output.writeString("foo.bar.1");
744744
output.writeOptionalString("1");
@@ -751,7 +751,7 @@ public void testReadLegacyFromStream() throws IOException {
751751
output.writeString("foo.bar.baz");
752752
output.writeOptionalString("baz");
753753
StreamInput in = StreamInput.wrap(BytesReference.toBytes(output.bytes()));
754-
in.setVersion(VersionUtils.getPreviousVersion(Version.CURRENT));
754+
in.setVersion(VersionUtils.getPreviousVersion(Version.V_6_1_0));
755755
Settings settings = Settings.readSettingsFromStream(in);
756756
assertEquals(2, settings.size());
757757
assertEquals(Arrays.asList("0", "1", "2", "3"), settings.getAsList("foo.bar"));

0 commit comments

Comments
 (0)