We’re rewarding the question askers & reputations are being recalculated! Read more.

I would suggest using my truffle-assertions library to assert whether events have been emitted. Using that, it doesn't matter what index an event has been emitted, just that it has been emitted. That means your assertions will be a bit less strict than they are currently, but it will be more readable and you won't experience the issues you faced with ...

Only top voted, non community-wiki answers of a minimum length are eligible