Fix another buffer leak in XmlFrameDecoderTest
This commit is contained in:
parent
457cd2f6fa
commit
5e69955d23
@ -162,9 +162,13 @@ public class XmlFrameDecoderTest {
|
|||||||
actual.add(cause.getClass());
|
actual.add(cause.getClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Object> expectedList = new ArrayList<Object>();
|
try {
|
||||||
Collections.addAll(expectedList, expected);
|
List<Object> expectedList = new ArrayList<Object>();
|
||||||
assertThat(actual, is(expectedList));
|
Collections.addAll(expectedList, expected);
|
||||||
|
assertThat(actual, is(expectedList));
|
||||||
|
} finally {
|
||||||
|
ch.finish();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private String sample(String number) throws IOException, URISyntaxException {
|
private String sample(String number) throws IOException, URISyntaxException {
|
||||||
|
Loading…
Reference in New Issue
Block a user