HTTP/2 unit test missed syncrhonized collection
Motiviation: PR https://github.com/netty/netty/pull/2948 missed a collection to synchronize in the HTTP/2 unit tests. Modifications: synchronize the collection that was missed Result: Missed collection is syncronized and initial size is corrected
This commit is contained in:
parent
6f55a5b8e8
commit
b785128349
@ -290,7 +290,7 @@ public class Http2ConnectionRoundtripTest {
|
||||
return null;
|
||||
}
|
||||
}).when(serverListener).onPingRead(any(ChannelHandlerContext.class), eq(pingData));
|
||||
final List<String> receivedDataBuffers = new ArrayList<String>();
|
||||
final List<String> receivedDataBuffers = Collections.synchronizedList(new ArrayList<String>(NUM_STREAMS));
|
||||
doAnswer(new Answer<Void>() {
|
||||
@Override
|
||||
public Void answer(InvocationOnMock in) throws Throwable {
|
||||
|
Loading…
Reference in New Issue
Block a user