Mercurial > stress-tester
changeset 760:d6c35bbbac02
bugfix
author | Devel 1 |
---|---|
date | Fri, 15 Dec 2017 11:06:48 +0100 |
parents | a4e380627732 |
children | 42eb8a0fd8c0 |
files | stress-tester/src/test/java/com/passus/st/utils/HttpMessageAssert.java |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/test/java/com/passus/st/utils/HttpMessageAssert.java Fri Dec 15 10:46:23 2017 +0100 +++ b/stress-tester/src/test/java/com/passus/st/utils/HttpMessageAssert.java Fri Dec 15 11:06:48 2017 +0100 @@ -3,6 +3,7 @@ import static com.passus.st.utils.Assert.*; import com.passus.data.ByteBuff; import com.passus.data.ByteString; +import com.passus.data.DataSourceUtis; import com.passus.data.HeapByteBuff; import com.passus.net.http.HttpHeaders; import com.passus.net.http.HttpMessage; @@ -47,10 +48,8 @@ } try { - ByteBuff content1 = new HeapByteBuff(); - ByteBuff content2 = new HeapByteBuff(); - expectedMsg.getContent().write(content1); - msg.getContent().write(content2); + ByteBuff content1 = DataSourceUtis.toByteBuff(expectedMsg.getContent()); + ByteBuff content2 = DataSourceUtis.toByteBuff(msg.getContent()); assertEquals(content1, content2); } catch (Exception e) { throw new RuntimeException(e.getMessage(), e);