In NetTest#testIdleTimeoutSendChunkedFile remaining bytes should only be set in client end handler

This commit is contained in:
Julien Viet
2019-05-02 18:38:15 +02:00
parent 598ed63099
commit b83eabbb1c

View File

@@ -3415,7 +3415,6 @@ public class NetTest extends VertxTestBase {
};
Consumer<NetSocket> receiver = so -> {
now.set(System.currentTimeMillis());
remaining.set(expected);
int[] len = { 0 };
so.handler(buff -> {
len[0] += buff.length();