-
Notifications
You must be signed in to change notification settings - Fork 131
test: fix ITDatabaseAdminTest failures #2976
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
Conversation
ExecutionException e = | ||
assertThrows(ExecutionException.class, () -> op.get(5, TimeUnit.MINUTES)); | ||
assertThat(e.getMessage()).contains("Invalid field mask"); | ||
SpannerException e = assertThrows(SpannerException.class, () -> op.get(5, TimeUnit.MINUTES)); |
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.
I'm pretty sure that the error that is returned by op.get()
will be an ExecutionException
, and not a SpannerException
. However, the underlying cause of the ExecutionException
should be a SpannerException
.
(The build also fails because this assertion fails, as the returned exception is an ExecutionException
).
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.
Thanks, I have fixed the asserts.
* test: fix ITDatabaseAdminTest failures * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * exclude owlbot pre-processor run on kokoro config * remove reduntant assert * fix test --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes test failures
If you write sample code, please follow the samples format.