There is a race condition where setting a hook, where we store the event
before and only then set the hook. If somehow if a test is fast enough
to retrieve the events and signal before the hook is actually set, it
will fail. It makes more sense to set the hook first.
Reviewed: https:/ /review. openstack. org/374115 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=65e7e594c86 824e5bfd8886658 92294a33330a0b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 65e7e594c86824e 5bfd88866589229 4a33330a0b
Author: Thomas Herve <email address hidden>
Date: Wed Sep 21 14:47:36 2016 +0200
Set hooks before storing events
There is a race condition where setting a hook, where we store the event
before and only then set the hook. If somehow if a test is fast enough
to retrieve the events and signal before the hook is actually set, it
will fail. It makes more sense to set the hook first.
Change-Id: I8f3c33da37419d 2d9ead27aaf4394 9e876236bc5
Closes-Bug: #1626075