Commit 08f04639 authored by gejun's avatar gejun

remove a warning in UT

parent 4a221bbf
......@@ -400,7 +400,7 @@ TEST_F(HttpTest, chunked_uploading) {
const std::string exp_res = "{\"message\":\"world\"}";
butil::ScopedFILE fp(res_fname.c_str(), "r");
char buf[128];
fgets(buf, sizeof(buf), fp);
ASSERT_TRUE(fgets(buf, sizeof(buf), fp));
EXPECT_EQ(exp_res, std::string(buf));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment