Fix another buffer leak in XmlFrameDecoderTest

This commit is contained in:
Trustin Lee 2013-12-16 16:16:37 +09:00
parent 457cd2f6fa
commit 5e69955d23

View File

@ -162,9 +162,13 @@ public class XmlFrameDecoderTest {
actual.add(cause.getClass());
}
List<Object> expectedList = new ArrayList<Object>();
Collections.addAll(expectedList, expected);
assertThat(actual, is(expectedList));
try {
List<Object> expectedList = new ArrayList<Object>();
Collections.addAll(expectedList, expected);
assertThat(actual, is(expectedList));
} finally {
ch.finish();
}
}
private String sample(String number) throws IOException, URISyntaxException {