Skip to content
Snippets Groups Projects
  • Cenk Gündoğan's avatar
    df9e2535
    test: trickle: fix condition for success · df9e2535
    Cenk Gündoğan authored
    The current test implementation wrongly assumes that the diff between
    two fired events (e1, e2) must always increase. That is not true, as
    event e1 may reside on the upper part of [I/2, I) and e2 on the lower
    part of [I, 2*I).
    
    This commit fixes the test to look at the actual time that was randonmly
    chosen from both intervals (t1, t2). Given that the intervals are
    doubled, t1 must always be smaller than t2.
    df9e2535
    History
    test: trickle: fix condition for success
    Cenk Gündoğan authored
    The current test implementation wrongly assumes that the diff between
    two fired events (e1, e2) must always increase. That is not true, as
    event e1 may reside on the upper part of [I/2, I) and e2 on the lower
    part of [I, 2*I).
    
    This commit fixes the test to look at the actual time that was randonmly
    chosen from both intervals (t1, t2). Given that the intervals are
    doubled, t1 must always be smaller than t2.