integration: Avoid duplicate events from recwatch

This commit is contained in:
James Shubin
2019-02-01 07:02:51 -05:00
parent 9966ca2e85
commit 81faec508c

View File

@@ -315,10 +315,11 @@ func (obj *Instance) Wait(ctx context.Context) error {
if err := event.Error; err != nil {
return errwrap.Wrapf(err, "error event received")
}
startup = nil
// send event...
case <-ctx.Done():
startup = nil
return ctx.Err()
}