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

remove all usages of TaskFactory in test suite #2164

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Conversation

shiftkey
Copy link
Member

Task.Factory.StartNew is from a time before we had the ability to wrap a result in a Task, and as part of simplifying tests to be able to refactor the internals I decided to drop these usages.

You may also note the TestSetup.GetApiResponse helper function - that helps eliminate repetitive code and make the tests more readable.

@codecov
Copy link

codecov bot commented Mar 31, 2020

Codecov Report

Merging #2164 into master will not change coverage by %.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2164   +/-   ##
=======================================
  Coverage   66.75%   66.75%           
=======================================
  Files         545      545           
  Lines       14234    14234           
=======================================
  Hits         9502     9502           
  Misses       4732     4732           

@shiftkey shiftkey merged commit 4b0e725 into master Mar 31, 2020
@shiftkey shiftkey deleted the tidy-up-task-factory branch March 31, 2020 19:57
@shiftkey
Copy link
Member Author

release_notes: replace Task.Factory.StartNew usage in tests with Task.FromResult to simplify test setup

@nickfloyd nickfloyd added Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR and removed category: housekeeping labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants