Fix a logic error in the events e2e test.
Merge pull request #2705 from brendandburns/fix

Fix a logic error in the events e2e test.