itopo: Increase sleep in unit test
Currently, the unit test fails occasionally on slow machines
due to the callback not being called in time. This change
increases the sleep period that waits for the callback being
called.
fixes
@@ -328,7 +328,7 @@ type clbkCalled struct {
func (c *clbkCalled) check(clean, drop, update bool) {
// Wait for callbacks to be executed
- time.Sleep(10 * time.Millisecond)
+ time.Sleep(500 * time.Millisecond)
SoMsg("clbk clean", c.clean, ShouldEqual, clean)
SoMsg("clbk drop", c.drop, ShouldEqual, drop)
SoMsg("clbk update", c.update, ShouldEqual, update)
