From 8bd34664f12c61178a82dd1be535f4ae798a4540 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Thu, 26 Apr 2018 11:27:17 +0800 Subject: [PATCH] fix unit test error --- paddle/fluid/operators/reader/reader_blocking_queue_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/reader/reader_blocking_queue_test.cc b/paddle/fluid/operators/reader/reader_blocking_queue_test.cc index c0229f53f25..7d1b381d56c 100644 --- a/paddle/fluid/operators/reader/reader_blocking_queue_test.cc +++ b/paddle/fluid/operators/reader/reader_blocking_queue_test.cc @@ -78,7 +78,7 @@ TEST(BlockingQueue, SenderBlockingTest) { std::vector res; while (true) { size_t elem; - if (!q.Receive(&elem) { + if (!q.Receive(&elem)) { break; } res.push_back(elem); -- GitLab