@@ -193,7 +193,7 @@ void ConcurrentQueueBasicTest(Queue& queue) {
193193 ASSERT_TRUE (queue.Empty ());
194194 queue.Push (1 );
195195 ASSERT_FALSE (queue.Empty ());
196- ASSERT_EQ (queue.Pop (), 1 );
196+ ASSERT_EQ (queue.TryPop (), std::make_optional ( 1 ) );
197197 ASSERT_TRUE (queue.Empty ());
198198
199199 auto fut_pop = std::async (std::launch::async, [&]() { return queue.WaitAndPop (); });
@@ -225,7 +225,7 @@ TEST(ConcurrentQueue, BasicTest) {
225225class BackpressureTestExecNode : public ExecNode {
226226 public:
227227 BackpressureTestExecNode () : ExecNode(nullptr , {}, {}, nullptr ) {}
228- const char * kind_name () const { return " BackpressureTestNode" ; }
228+ const char * kind_name () const override { return " BackpressureTestNode" ; }
229229 Status InputReceived (ExecNode* input, ExecBatch batch) override {
230230 return Status::NotImplemented (" Test only node" );
231231 }
@@ -283,10 +283,10 @@ TEST(BackpressureConcurrentQueue, BackpressureTest) {
283283 queue.Push (9 );
284284 ASSERT_TRUE (dummy_node.paused );
285285 ASSERT_FALSE (dummy_node.stopped );
286- ASSERT_EQ (queue.Pop (), 6 );
286+ ASSERT_EQ (queue.TryPop (), std::make_optional ( 6 ) );
287287 ASSERT_TRUE (dummy_node.paused );
288288 ASSERT_FALSE (dummy_node.stopped );
289- ASSERT_EQ (queue.Pop (), 7 );
289+ ASSERT_EQ (queue.TryPop (), std::make_optional ( 7 ) );
290290 ASSERT_FALSE (dummy_node.paused );
291291 ASSERT_FALSE (dummy_node.stopped );
292292 queue.Push (10 );
0 commit comments