We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b485e69 commit bccc99cCopy full SHA for bccc99c
server/src/test/java/org/elasticsearch/transport/TcpTransportTests.java
@@ -206,7 +206,9 @@ protected void stopInternal() {
206
207
@Override
208
public NodeChannels openConnection(DiscoveryNode node, ConnectionProfile connectionProfile) {
209
- assertTrue(connectionProfile.getCompressionEnabled());
+ if (compressed) {
210
+ assertTrue(connectionProfile.getCompressionEnabled());
211
+ }
212
int numConnections = connectionProfile.getNumConnections();
213
ArrayList<TcpChannel> fakeChannels = new ArrayList<>(numConnections);
214
for (int i = 0; i < numConnections; ++i) {
0 commit comments