GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: fix ITDatabaseAdminTest failures by rahul2393 · Pull Request #2976 · googleapis/java-spanner

This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Conversation

@rahul2393

@rahul2393 rahul2393 commented Mar 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes test failures

If you write sample code, please follow the samples format.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rahul2393
test: fix ITDatabaseAdminTest failures
6b8fc5a
@rahul2393
rahul2393 requested a review from a team March 26, 2024 06:03
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/java-spanner API. labels Mar 26, 2024
@rahul2393 rahul2393 assigned olavloite and arpan14 and unassigned olavloite Mar 26, 2024
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
23d8c6d
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@rahul2393
rahul2393 requested a review from a team March 26, 2024 06:06
rahul2393 added 2 commits March 26, 2024 11:48
@rahul2393
exclude owlbot pre-processor run on kokoro config
4a03f3f
@rahul2393
remove reduntant assert
f7abf26
olavloite
olavloite suggested changes Mar 26, 2024
View reviewed changes
Comment thread google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITDatabaseAdminTest.java Outdated
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));

@olavloite olavloite Mar 26, 2024

Copy link
Copy Markdown
Contributor

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).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rahul2393 reacted with rocket emoji
All reactions
  • 🚀 1 reaction

@rahul2393 rahul2393 Mar 26, 2024

Copy link
Copy Markdown
Contributor Author

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rahul2393
fix test
52aaae0
@product-auto-label product-auto-label Bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Mar 26, 2024
@rahul2393
rahul2393 requested a review from olavloite March 26, 2024 16:08
olavloite
olavloite approved these changes Mar 26, 2024
View reviewed changes
@rahul2393
rahul2393 merged commit fd08c12 into main Mar 26, 2024
@rahul2393
rahul2393 deleted the fix-test branch March 26, 2024 18:21
arpan14 pushed a commit to arpan14/java-spanner that referenced this pull request Apr 1, 2024
@rahul2393 @gcf-owl-bot Arpan Mishra
test: fix ITDatabaseAdminTest failures (googleapis#2976)
7bdbb41
* 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@olavloite olavloite olavloite approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@arpan14 arpan14

Labels

api: spanner Issues related to the googleapis/java-spanner API. size: s Pull request size is small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@rahul2393 @olavloite @arpan14
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.