Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Better expectEvent#23

Merged
andrewgordstewart merged 1 commit intomasterfrom
as-better-expectEvent
Mar 29, 2019
Merged

Better expectEvent#23
andrewgordstewart merged 1 commit intomasterfrom
as-better-expectEvent

Conversation

@andrewgordstewart
Copy link
Copy Markdown
Contributor

@andrewgordstewart andrewgordstewart commented Mar 29, 2019

Instead, expectEvent accepts either a transaction or a transaction result (the value that someTransaction.wait() resolves to), and manually checks that an event was emitted matching the given arguments.

This is cleaner, and also more robust than using ethers' event filter, which was causing flickering tests.

@andrewgordstewart andrewgordstewart force-pushed the as-better-expectEvent branch 3 times, most recently from 834cbc4 to 7c9df97 Compare March 29, 2019 23:21
This doesn't use ethers' event filter business logic, which was causing
flickering tests.
@andrewgordstewart andrewgordstewart merged commit 8fece10 into master Mar 29, 2019
@andrewgordstewart andrewgordstewart deleted the as-better-expectEvent branch March 29, 2019 23:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants