Comment 6 for bug 1635664

Revision history for this message
Christian Muirhead (2-xtian) wrote :

This is happening because a mutex acquire is being cancelled while delaying. The uniter tries to grab the hook lock, but is blocked by the test (in waitHooks). It delays 250ms and while it's delayed the test kills the uniter, which makes the delayed acquire call return ErrCancelled.

That is returned by the worker.Stop call in util_test.go, and so the test fails.

I'm changing the test code so that it won't fail if it gets ErrCancelled from the stop call.