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

Commit 34e7a769 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

CertSelfTest minor fix

In test_fluent_behavior__wait_until_done_two_events_AB, let the second
event B happen 0.5 second after A. Otherwise B could happen before A in
rare condition.

Tag: #stability

Test: cert/run --host
Change-Id: I1fd43afe587fe62538abdafaff52f604e80950bc
parent d47046a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -762,7 +762,7 @@ class CertSelfTest(BaseTestClass):
        t1 = Timer(0.5, closure1)
        t1.start()
        closure2 = lambda: thing.behaviors.test_request_behavior.run("B")
        t2 = Timer(0.5, closure2)
        t2 = Timer(1, closure2)
        t2.start()

        wait_until(thing).test_request(anything()).times(2)