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

Mock HTTPClientService #1565

Merged
merged 1 commit into from
Sep 28, 2016
Merged

Mock HTTPClientService #1565

merged 1 commit into from
Sep 28, 2016

Conversation

LukasReschke
Copy link
Member

These tests were not using any kind of mocks at all! This made the test execution time took 2 minutes instead of now less than 1 second… (because multiple HTTP requests were queued and timed-out then…)

See https://blackfire.io/profiles/compare/6d2611f2-ad08-47b6-973b-2b5f9c8b96d2/graph for reference

cc @schiessle cough cough
cc @MorrisJobke @blizzz Please review :)

@LukasReschke LukasReschke added the 3. to review Waiting for reviews label Sep 28, 2016
@LukasReschke LukasReschke added this to the Nextcloud 11.0 milestone Sep 28, 2016
@mention-bot
Copy link

@LukasReschke, thanks for your PR! By analyzing the annotation information on this pull request, we identified @rullzer, @schiessle and @icewind1991 to be potential reviewers

These tests were not using any kind of mocks at all! This made the test execution time took 2 minutes instead of now less than 1 second… (because multiple HTTP requests were queued and timed-out then…)

See https://blackfire.io/profiles/compare/6d2611f2-ad08-47b6-973b-2b5f9c8b96d2/graph for reference

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
@blizzz
Copy link
Member

blizzz commented Sep 28, 2016

LGTM

@MorrisJobke
Copy link
Member

👍

LukasReschke added a commit that referenced this pull request Sep 28, 2016
Otherwise the unit test execution will do a ton of external HTTP requests which fail and then timeout…

See https://blackfire.io/profiles/compare/3c67acfa-a11e-4aec-bcd4-c945b006f01e/graph for reference

Pretty similar to #1565
LukasReschke added a commit that referenced this pull request Sep 28, 2016
Otherwise the unit test execution will do a ton of external HTTP requests which fail and then timeout…

See https://blackfire.io/profiles/compare/3c67acfa-a11e-4aec-bcd4-c945b006f01e/graph for reference

Pretty similar to #1565

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
@LukasReschke LukasReschke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 28, 2016
@LukasReschke LukasReschke merged commit 6f83167 into master Sep 28, 2016
@LukasReschke LukasReschke deleted the mock-http-service branch September 28, 2016 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants