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:
Scott Mitchell 2014-10-02 09:33:56 -04:00
parent 6f55a5b8e8
commit b785128349

View File

@ -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 {