This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 3effcc0  Fix test_QUICStream
3effcc0 is described below

commit 3effcc011fa0ab7c4f3fbb17b0822009226fb905
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Thu Mar 14 12:29:53 2019 +0900

    Fix test_QUICStream
---
 iocore/net/quic/test/test_QUICStream.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iocore/net/quic/test/test_QUICStream.cc 
b/iocore/net/quic/test/test_QUICStream.cc
index 4f2553e..dc3b619 100644
--- a/iocore/net/quic/test/test_QUICStream.cc
+++ b/iocore/net/quic/test/test_QUICStream.cc
@@ -349,7 +349,7 @@ TEST_CASE("QUICBidiStream", "[quic]")
     CHECK(frame->type() == QUICFrameType::STREAM);
     CHECK(frame1->offset() == frame2->offset());
     CHECK(frame1->data_length() == frame2->data_length());
-    CHECK(memcmp(frame1->data(), frame2->data(), frame1->data_length()));
+    CHECK(memcmp(frame1->data()->buf(), frame2->data()->buf(), 
frame1->data_length()) == 0);
   }
 
   SECTION("Retransmit RESET_STREAM frame")
@@ -814,7 +814,7 @@ TEST_CASE("QUIC send only stream", "[quic]")
     CHECK(frame->type() == QUICFrameType::STREAM);
     CHECK(frame1->offset() == frame2->offset());
     CHECK(frame1->data_length() == frame2->data_length());
-    CHECK(memcmp(frame1->data(), frame2->data(), frame1->data_length()));
+    CHECK(memcmp(frame1->data()->buf(), frame2->data()->buf(), 
frame1->data_length()) == 0);
   }
 
   SECTION("Retransmit RESET_STREAM frame")

Reply via email to