Skip to content

Commit 5fd759b

Browse files
committed
Merge branch 'master' into ccr
* master: Adapt transport tests for the extra byte introduced in #31020
2 parents 9564b60 + 65d3f0e commit 5fd759b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,15 +2329,15 @@ public String executor() {
23292329
assertEquals(1, transportStats.getRxCount());
23302330
assertEquals(2, transportStats.getTxCount());
23312331
assertEquals(25, transportStats.getRxSize().getBytes());
2332-
assertEquals(91, transportStats.getTxSize().getBytes());
2332+
assertEquals(92, transportStats.getTxSize().getBytes());
23332333
});
23342334
sendResponseLatch.countDown();
23352335
responseLatch.await();
23362336
stats = serviceC.transport.getStats(); // response has been received
23372337
assertEquals(2, stats.getRxCount());
23382338
assertEquals(2, stats.getTxCount());
23392339
assertEquals(46, stats.getRxSize().getBytes());
2340-
assertEquals(91, stats.getTxSize().getBytes());
2340+
assertEquals(92, stats.getTxSize().getBytes());
23412341
} finally {
23422342
serviceC.close();
23432343
}
@@ -2444,7 +2444,7 @@ public String executor() {
24442444
assertEquals(1, transportStats.getRxCount());
24452445
assertEquals(2, transportStats.getTxCount());
24462446
assertEquals(25, transportStats.getRxSize().getBytes());
2447-
assertEquals(91, transportStats.getTxSize().getBytes());
2447+
assertEquals(92, transportStats.getTxSize().getBytes());
24482448
});
24492449
sendResponseLatch.countDown();
24502450
responseLatch.await();
@@ -2459,7 +2459,7 @@ public String executor() {
24592459
// 49 bytes are the non-exception message bytes that have been received. It should include the initial
24602460
// handshake message and the header, version, etc bytes in the exception message.
24612461
assertEquals(failedMessage, 49 + streamOutput.bytes().length(), stats.getRxSize().getBytes());
2462-
assertEquals(91, stats.getTxSize().getBytes());
2462+
assertEquals(92, stats.getTxSize().getBytes());
24632463
} finally {
24642464
serviceC.close();
24652465
}

0 commit comments

Comments
 (0)