Fix version in testDiscoveryNodeRoleWithOldVersion

This commits fixes the version when reading from the stream in
DiscoveryNodeTests#testDiscoveryNodeRoleWithOldVersion.

Closes #64385
This commit is contained in:
Jason Tedor 2020-10-29 22:34:59 -04:00
parent 533b929e6c
commit 6b119a43c1
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ public class DiscoveryNodeTests extends ESTestCase {
node.writeTo(streamOutput);
StreamInput in = StreamInput.wrap(streamOutput.bytes().toBytesRef().bytes);
in.setVersion(Version.V_7_10_0);
in.setVersion(Version.V_7_9_0);
DiscoveryNode serialized = new DiscoveryNode(in);
assertThat(serialized.getRoles().stream().map(DiscoveryNodeRole::roleName).collect(Collectors.joining()),
equalTo("data"));