Skip to content

Conversation

@kolea2
Copy link
Collaborator

@kolea2 kolea2 commented Jun 18, 2021

It seems like the error message for this has been updated.

@kolea2 kolea2 requested a review from a team as a code owner June 18, 2021 18:40
@kolea2 kolea2 requested a review from a team June 18, 2021 18:40
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/java-firestore API. label Jun 18, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 18, 2021
final Status status = invalidArgument.getStatus();
assertThat(status.getCode()).isEqualTo(Code.FAILED_PRECONDITION);
assertThat(status.getDescription()).contains("minimum");
assertThat(status.getDescription()).isEqualTo("The requested snapshot version is too old.");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question to reviewer: I noticed we've updated this assertion before - is it worth keeping (is the previous assertion enough?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just delete this line, checking for exact messages does not bring much value and is easy to break.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @wu-hui, I've removed the assertion.

@kolea2 kolea2 changed the title test(fix): update expected error message for reads older than 60 seconds test(fix): remove assertion on error message for reads older than 60 seconds Jun 22, 2021
@kolea2 kolea2 added the automerge Merge the pull request once unit tests and other checks pass. label Jun 22, 2021
@gcf-merge-on-green gcf-merge-on-green bot merged commit f7d83dc into googleapis:master Jun 22, 2021
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jun 22, 2021
@kolea2 kolea2 deleted the system-test-fix branch June 22, 2021 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: firestore Issues related to the googleapis/java-firestore API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants