Skip to content

Commit

Permalink
Merge branch 'main' into test/cbt-cleanup-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh authored Jan 23, 2024
2 parents cb39466 + a5a1604 commit b90ca42
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions firestore/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2720,18 +2720,17 @@ func TestIntegration_ClientReadTime(t *testing.T) {
}
}

tm := time.Now()
tm := time.Now().Add(-time.Minute)
c.WithReadOptions(ReadTime(tm))

ds, err := c.GetAll(ctx, docs)
if err != nil {
t.Fatal(err)
}

// TODO(6894): Re-enable this test when snapshot reads is available on test project.
t.SkipNow()
wantReadTime := tm.Truncate(time.Second)
for _, d := range ds {
if !tm.Equal(d.ReadTime) {
if !wantReadTime.Equal(d.ReadTime) {
t.Errorf("wanted read time: %v; got: %v",
tm.UnixNano(), d.ReadTime.UnixNano())
}
Expand Down

0 comments on commit b90ca42

Please sign in to comment.