From 9d4c93a0a773d40983468e2a058954d2dd9843b0 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Thu, 8 Mar 2018 11:22:28 +0800 Subject: [PATCH] Fix CI --- paddle/fluid/recordio/chunk_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/recordio/chunk_test.cc b/paddle/fluid/recordio/chunk_test.cc index a67ba32ed6a..1f0e36a14d3 100644 --- a/paddle/fluid/recordio/chunk_test.cc +++ b/paddle/fluid/recordio/chunk_test.cc @@ -26,7 +26,7 @@ TEST(Chunk, SaveLoad) { ch.Add(std::string("123", 4)); std::stringstream ss; ch.Write(ss, Compressor::kNoCompress); - ch.Clear(); + ss.seekg(0); ch.Parse(ss); ASSERT_EQ(ch.NumBytes(), 10U); } -- GitLab