Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49375590 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix flakiness in DefaultVhalImpl_test." into udc-dev

parents c3ac3a46 e548fc8c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -756,8 +756,9 @@ TEST_F(DefaultVhalImplTest, testDebugGenFakeDataLinear) {
    // Clear existing events.
    mEventQueue.flush();
    std::this_thread::sleep_for(std::chrono::milliseconds(500));
    // There should be no new events generated.
    EXPECT_EQ((size_t)0, mEventQueue.flush().size());
    // Technically there should be no new events generated, however, there might still be one event
    // in the queue while we are stopping the generator.
    EXPECT_LE(mEventQueue.flush().size(), 1u);
}

std::string getTestFilePath(const char* filename) {