[ovs-git] [ovn-org/ovn] a7cb4f: ovn-controller.at: Fix test for debug/delay-nb-cfg...

Han Zhou noreply at github.com
Thu Sep 10 19:54:02 UTC 2020

  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: a7cb4f89021377ce907c9153f57d44c5ff316cc7
  Author: Han Zhou <hzhou at ovn.org>
  Date:   2020-09-10 (Thu, 10 Sep 2020)

  Changed paths:
    M tests/ovn-controller.at

  Log Message:
  ovn-controller.at: Fix test for debug/delay-nb-cfg-report.

In the test case for debug/delay-nb-cfg-report, it sets the delay as
2 seconds, and firstly triggered a sync with wait timeout being 1 sec
and expects the wait timedout, and then it immediately started another
sync with wait timeout being 3 sec, expecting it not timing out.

However, since 2 + 2 = 1 + 3, there is a good chance that the second
wait would still time out, so the test fails occasionally. This patch
fixes it by sleep another 1 sec to let the 1st delay complete before
starting the second sync and wait.

Reported-by: Ilya Maximets <i.maximets at ovn.org>
Fixes: a8182e21484 ("ovn-controller: Unix command debug/delay-nb-cfg-report.")
Tested-by: Ilya Maximets <i.maximets at ovn.org>
Signed-off-by: Han Zhou <hzhou at ovn.org>

More information about the git mailing list