Skip to content

Random test migrations to Protobuf #8072

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

Merged
merged 2 commits into from
May 13, 2021

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented May 13, 2021

Brings tests in line with Android.

@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

Copy link

@thebrianchen thebrianchen left a comment

Choose a reason for hiding this comment

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

lgtm

Status resulting_status;
datastore->LookupDocuments(
{}, [&](const StatusOr<std::vector<MaybeDocument>>& maybe_documents) {
{}, [&](const StatusOr<std::vector<Document>>& maybe_documents) {

Choose a reason for hiding this comment

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

s/maybe_documents/documents

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Status resulting_status;
datastore->LookupDocuments(
{}, [&](const StatusOr<std::vector<MaybeDocument>>& maybe_documents) {
{}, [&](const StatusOr<std::vector<Document>>& maybe_documents) {

Choose a reason for hiding this comment

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

same here and below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

expected_data =
expected_data.Set(Field("foo.bar"), FieldValue::FromServerTimestamp(now));
expected_data.Set(Field("foo.bar"),
EncodeServerTimestamp(now, absl::nullopt));

Choose a reason for hiding this comment

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

Not sure if you have another PR to fix this, but now has type Timestamp, but EncodeServerTimestamp requires google_protobuf_Timestamp.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@schmidt-sebastian schmidt-sebastian merged commit e19483b into mrschmidt/mutabledocuments May 13, 2021
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/moretests branch May 13, 2021 19:59
@firebase firebase locked and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants