Skip to content

Commit

Permalink
HTTP/2 unit test missed syncrhonized collection
Browse files Browse the repository at this point in the history
Motiviation:
PR netty#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
  • Loading branch information
Scottmitch committed Oct 2, 2014
1 parent 6f55a5b commit b785128
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public Void answer(InvocationOnMock in) throws Throwable {
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 {
Expand Down

0 comments on commit b785128

Please sign in to comment.