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

Commit b80254cc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix flakiness in DefaultVhalImpl_test." into udc-dev am: 49375590

parents 35320bc0 49375590
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) {