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

Flaky test fix and wait on some fault injection durations #2798

Merged
merged 6 commits into from Sep 30, 2022

Conversation

drwill-ms
Copy link
Contributor

TBH I don't love NSubstitute as a mocking framework. All too often I see a runtime error (that doesn't reproduce consistently) about not being able to match a type.

Test method Microsoft.Azure.Devices.Client.Test.RetryDelegatingHandlerTests.RetrySetRetryPolicyVerifyInternalsSuccess threw exception:
NSubstitute.Exceptions.AmbiguousArgumentsException: Cannot determine argument specifications to use.
Please use specifications for all arguments of the same type.

In this case, we can simply pass the parameter that will be passed rather than use a filter.

@drwill-ms drwill-ms changed the title Flaky test fix Flaky test fix and wait on some fault injection durations Sep 30, 2022
@drwill-ms
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@drwill-ms
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@drwill-ms
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@drwill-ms
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@drwill-ms drwill-ms enabled auto-merge (squash) September 30, 2022 22:34
@drwill-ms drwill-ms merged commit 42fb993 into main Sep 30, 2022
@drwill-ms drwill-ms deleted the drwll/test-fix branch September 30, 2022 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants