The failure I see (which does come from the same expectation that exists in the CI job) is "fixed" by adding the following to the start of the test:
EXPECT_FALSE(wait_for_event(mir_event_type_orientation, std::chrono::milliseconds(1)));
I'm not yet sure why that affects behaviour but it strongly suggests some race during setup.
The failure I see (which does come from the same expectation that exists in the CI job) is "fixed" by adding the following to the start of the test:
EXPECT_ FALSE(wait_ for_event( mir_event_ type_orientatio n, std::chrono: :milliseconds( 1)));
I'm not yet sure why that affects behaviour but it strongly suggests some race during setup.