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

Improve mechanism for expected exceptions in tests #1106

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

andygrove
Copy link
Contributor

Signed-off-by: Andy Grove andygrove@nvidia.com

Replace testExpectedExceptionStartsWith with a more flexible testExpectedException that accepts a function to determine if an exception is the expected one or not, so we are not limited to just looking at startsWith.

I needed this in another PR that I am working on.

Signed-off-by: Andy Grove <andygrove@nvidia.com>
@andygrove andygrove added the test Only impacts tests label Nov 12, 2020
@andygrove andygrove self-assigned this Nov 12, 2020
@jlowe
Copy link
Member

jlowe commented Nov 12, 2020

build

@jlowe jlowe merged commit ccf4b67 into NVIDIA:branch-0.3 Nov 12, 2020
sperlingxx pushed a commit to sperlingxx/spark-rapids that referenced this pull request Nov 20, 2020
Signed-off-by: Andy Grove <andygrove@nvidia.com>
@andygrove andygrove deleted the improve-expected-exception-tests branch December 17, 2020 15:27
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
Signed-off-by: Andy Grove <andygrove@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
Signed-off-by: Andy Grove <andygrove@nvidia.com>
tgravescs pushed a commit to tgravescs/spark-rapids that referenced this pull request Nov 30, 2023
…IDIA#1106)

Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Only impacts tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants