Skip to content

Commit d266f58

Browse files
authored
Remove workaround from TransportHandshakerTests (#123587)
TransportHandshakerTests had a workaround for multi-project's fake transport version. Now that it's a real transport version we can remove the workaround
1 parent 3eb7f12 commit d266f58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/src/test/java/org/elasticsearch/transport/TransportHandshakerTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import org.elasticsearch.cluster.node.DiscoveryNodeUtils;
1919
import org.elasticsearch.common.io.stream.BytesStreamOutput;
2020
import org.elasticsearch.common.io.stream.StreamInput;
21-
import org.elasticsearch.core.FixForMultiProject;
2221
import org.elasticsearch.core.Strings;
2322
import org.elasticsearch.core.TimeValue;
2423
import org.elasticsearch.core.UpdateForV10;
@@ -304,8 +303,7 @@ public void testHandshakeRequestFutureVersionsCompatibility() throws IOException
304303
TaskId.EMPTY_TASK_ID.writeTo(futureHandshake);
305304
final var extraDataSize = between(0, 1024);
306305
try (BytesStreamOutput internalMessage = new BytesStreamOutput()) {
307-
@FixForMultiProject(description = "update to between(0, 100) when multi-projects get a real transport version")
308-
final var futureTransportVersionId = TransportVersion.current().id() + between(0, 1);
306+
final var futureTransportVersionId = TransportVersion.current().id() + between(0, 100);
309307
internalMessage.writeVInt(futureTransportVersionId);
310308
internalMessage.writeString(buildVersion);
311309
lengthCheckingHandshake.writeBytesReference(internalMessage.bytes());

0 commit comments

Comments
 (0)