From 2da253eec8d07d947a1e0bfac8a996e8e903911f Mon Sep 17 00:00:00 2001 From: John Date: Wed, 14 Feb 2024 18:28:17 +0000 Subject: [PATCH] remove confusing accepts --- coroutines/test/cotest-serverised.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/coroutines/test/cotest-serverised.cc b/coroutines/test/cotest-serverised.cc index f5dbfd68d..af07e1f14 100644 --- a/coroutines/test/cotest-serverised.cc +++ b/coroutines/test/cotest-serverised.cc @@ -102,13 +102,11 @@ COTEST(ServerisedTest, Example1) { if (auto e1 = e.IS_CALL(mock_object, Mock1)) { // Mock1() is accepted, checked and returned - e1.ACCEPT(); EXPECT_EQ(e1.GetArg<0>(), 1); e1.RETURN(); } else if (auto e2 = e.IS_CALL(mock_object, Mock2)) { // Mock2() is accepted, checked and returned, but we require // it to be followed by a call to MockExtra() - e2.ACCEPT(); EXPECT_EQ(e2.GetArg<0>(), 2); e2.RETURN(); WAIT_FOR_CALL(mock_object, MockExtra).RETURN();