Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensions Tests Improvement #1789

Merged
merged 2 commits into from
Nov 13, 2019
Merged

Extensions Tests Improvement #1789

merged 2 commits into from
Nov 13, 2019

Conversation

bkendall
Copy link
Contributor

Description

The Extensions tests were being really slow, so I figured out why.

Added the helpers.mockAuth(sinon) call to speed up the auth calls.

There were a couple (expensive) additional "make sure the operation is polled" tests that I decided to opt to make only a single request because each polling operation takes 250ms (and it's not configurable - easily - from the tests as it's currently written).

Scenarios Tested

npm test

@googlebot googlebot added the cla: yes Manual indication that this has passed CLA. label Nov 13, 2019
@bkendall bkendall assigned bkendall, laurenzlong and joehan and unassigned bkendall Nov 13, 2019
@coveralls
Copy link

Coverage Status

Coverage remained the same at 66.248% when pulling e81856f on bk-fix-extensions-tests into 3be6495 on master.

Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bkendall bkendall merged commit 491037c into master Nov 13, 2019
@bkendall bkendall deleted the bk-fix-extensions-tests branch November 13, 2019 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants