ofproto.at: Fix races in rule eviciton tests
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Mon, 31 Mar 2014 05:04:35 +0000 (14:04 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Wed, 2 Apr 2014 02:38:39 +0000 (11:38 +0900)
commit337a3866f409b4aef2a8532022cc467fbe3de4a8
treea1a7e49ef92c7e1071917883b51079d30bf0092d
parent6202217226231b308ae9b1fc5a628b54b9f63d33
ofproto.at: Fix races in rule eviciton tests

Bump timeout differences, because timeouts different by 1s might end up
to have the same position in the heap as rule_eviction_priority() uses
1024ms as a unit.

Also, use time/stop to avoid relying on how long an add-flow would take.

These tests were introduced by commit 6d56c1f1.
("ofproto: Update rule's priority in eviction group.")

Acked-by: Ben Pfaff <blp@nicira.com>
Acked-by: Kmindg G <kmindg@gmail.com>
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
tests/ofproto.at