> On June 25, 2019, 7:44 p.m., Benjamin Mahler wrote: > > src/tests/scheduler_driver_tests.cpp > > Lines 514-516 (patched) > > > > > > This seems unnecessary? Removed this `settle()`. It does nothing useful except for preventing a potential race between `EXPECT_CALL(resourceOffers, ...)` and the driver calling `resourceOffers()` (which is possible only if the offer filters / framework update are broken). And testing offer filters / framework update is not the purpose of this test. - Andrei ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/70942/#review216130 ----------------------------------------------------------- On July 1, 2019, 1:32 p.m., Andrei Sekretenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/70942/ > ----------------------------------------------------------- > > (Updated July 1, 2019, 1:32 p.m.) > > > Review request for mesos and Benjamin Mahler. > > > Bugs: MESOS-9849 > https://issues.apache.org/jira/browse/MESOS-9849 > > > Repository: mesos > > > Description > ------- > > Added a test for 'reviveOffers(roles)'. > > > Diffs > ----- > > src/tests/scheduler_driver_tests.cpp 46af8d2c0fff15974b028521d1434e67bd9217da > > > Diff: https://reviews.apache.org/r/70942/diff/3/ > > > Testing > ------- > > `./bin/mesos-tests.sh --gtest_filter="MesosSchedulerDriverTest*ReviveSingleRole*" --gtest_break_on_failure --gtest_repeat=1000` > > > Thanks, > > Andrei Sekretenko > >