We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7843ebf commit ad72e9eCopy full SHA for ad72e9e
1 file changed
firestore/integration_test.go
@@ -3459,11 +3459,12 @@ func testIntegrationClientReadTime(t *testing.T) {
3459
t.Fatal(err)
3460
}
3461
3462
- wantReadTime := tm.Truncate(time.Second)
+ wantReadTime := tm.Truncate(time.Microsecond)
3463
for _, d := range ds {
3464
- if !wantReadTime.Equal(d.ReadTime) {
+ gotTrunc := d.ReadTime.Truncate(time.Microsecond)
3465
+ if !wantReadTime.Equal(gotTrunc) {
3466
t.Errorf("wanted read time: %v; got: %v",
- tm.UnixNano(), d.ReadTime.UnixNano())
3467
+ wantReadTime, gotTrunc)
3468
3469
3470
0 commit comments