Skip to content

Firestore: write_batch_test.cc: clean up assertion checks #1047

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 1 commit into from
Aug 9, 2022

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Aug 8, 2022

The assertion checks in write_batch_test.cc have been improved in this PR to provide better information upon test failure.

For example,

EXPECT_TRUE(0 == initial_snapshot.size());

was changed to

EXPECT_EQ(initial_snapshot.size(), 0);

so that the actual size would be included in the failure message.

This will help debug test failures in the future.

@dconeybe dconeybe added api: firestore skip-release-notes Skip release notes check labels Aug 8, 2022
@dconeybe dconeybe self-assigned this Aug 8, 2022
@dconeybe dconeybe added the tests-requested: quick Trigger a quick set of integration tests. label Aug 8, 2022
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Aug 8, 2022
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

Integration test with FLAKINESS (succeeded after retry)

Requested by @dconeybe on commit aae74a8
Last updated: Mon Aug 8 23:21 PDT 2022
View integration test log & download artifacts

Failures Configs
firestore [TEST] [FLAKINESS] [Android] [1/3 os: macos] [1/2 android_device: android_target]
(1 failed tests)  CRASH/TIMEOUT

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions bot added the tests: succeeded This PR's integration tests succeeded. label Aug 8, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Aug 8, 2022
@dconeybe dconeybe requested a review from ehsannas August 8, 2022 23:36
@dconeybe dconeybe merged commit aae74a8 into main Aug 9, 2022
@dconeybe dconeybe deleted the dconeybe/WriteBatchTestAssertionCleanup branch August 9, 2022 03:11
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. tests: succeeded This PR's integration tests succeeded. and removed tests: succeeded This PR's integration tests succeeded. labels Aug 9, 2022
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Aug 9, 2022
@firebase firebase locked and limited conversation to collaborators Sep 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: firestore skip-release-notes Skip release notes check tests: succeeded This PR's integration tests succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants