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

[Storage] verify errors for tests that expect errors #5242

Merged
merged 2 commits into from
Sep 26, 2019

Conversation

jeremymeng
Copy link
Member

Some tests currently do not verify expected errors properly. They just catch the
error then pass the tests. The problem is assert.fail() in the try-block
also throws error. Assertion error is swallowed if we don't check the caught
error.

This change adds verification for the expected errors.

Resolves #4580

Some tests currently do not verify expected errors properly. They just catch the
error then pass the tests. The problem is `assert.fail()` in the `try`-block
also throws error. Assertion error is swallowed if we don't check the caught
error.

This change adds verification for the expected errors.
@HarshaNalluru
Copy link
Member

Build failed. Might need to update the recordings for specific aborter tests.

@mitchdenny
Copy link
Contributor

/check-enforcer reset

@mitchdenny
Copy link
Contributor

/check-enforcer queued

@mitchdenny
Copy link
Contributor

/check-enforcer evaluate

@mitchdenny
Copy link
Contributor

/check-enforcer inprogress

@XiaoningLiu XiaoningLiu added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels Sep 25, 2019
@jeremymeng
Copy link
Member Author

Build failed. Might need to update the recordings for specific aborter tests.

I recorded a new baseline. The diff is only in the container name.

@jeremymeng jeremymeng force-pushed the check-abort-error branch 2 times, most recently from 047434d to c7ccdb9 Compare September 25, 2019 22:45
@jeremymeng jeremymeng merged commit 0fb86d6 into Azure:feature/storage Sep 26, 2019
@jeremymeng jeremymeng deleted the check-abort-error branch September 26, 2019 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants