Fix TcpTransport compression test (#35396)
This commit fixes an assertion in the TcpTransportTests compresssion test.
This commit is contained in:
parent
b485e69a5f
commit
bccc99c2be
|
@ -206,7 +206,9 @@ public class TcpTransportTests extends ESTestCase {
|
|||
|
||||
@Override
|
||||
public NodeChannels openConnection(DiscoveryNode node, ConnectionProfile connectionProfile) {
|
||||
assertTrue(connectionProfile.getCompressionEnabled());
|
||||
if (compressed) {
|
||||
assertTrue(connectionProfile.getCompressionEnabled());
|
||||
}
|
||||
int numConnections = connectionProfile.getNumConnections();
|
||||
ArrayList<TcpChannel> fakeChannels = new ArrayList<>(numConnections);
|
||||
for (int i = 0; i < numConnections; ++i) {
|
||||
|
|
Loading…
Reference in New Issue