diff --git a/unittest/progress_test.cc b/unittest/progress_test.cc index d2f879d357..b999b2c581 100644 --- a/unittest/progress_test.cc +++ b/unittest/progress_test.cc @@ -55,7 +55,7 @@ class QuickTest : public testing::Test { return instance->classicProgress( progress ); }; monitor.cancel = []( void* ths, int words ) -> bool { - ((ClassicMockProgressSink*)ths)->cancel( words ); + return ((ClassicMockProgressSink*)ths)->cancel(words); }; monitor.cancel_this = this; instance = this;