-
Notifications
You must be signed in to change notification settings - Fork 199
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
Pass DisposalToken
in tests
#11127
Pass DisposalToken
in tests
#11127
Conversation
These tests had been changed to set up mocks with DisposalToken from the testing infrastructure. However, the product code being tested doesn't have access to that CancellationToken and always passes CancellationToken.None to the method being mocked.
@davidwengier: I went and pushed a commit to fix up the failing tests. I hope that's ok! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome clean up! Thanks!
|
||
namespace Microsoft.AspNetCore.Razor.ProjectEngineHost.Test; | ||
|
||
public class StreamExtensionTests | ||
public class StreamExtensionTests(ITestOutputHelper testOutputHelper) : ToolingTestBase(testOutputHelper) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I probably would have used |
I just put it back like it was. 😄 |
Random pet peeves on a Thursday evening.