Skip to content

Commit 2c65345

Browse files
authored
test(datastore): Correct read time before creating entities (#8475)
1 parent 6a45f26 commit 2c65345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datastore/integration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ func TestIntegration_AggregationQueries(t *testing.T) {
724724
}
725725

726726
// Create transaction with read before creating entities
727-
readTime := time.Now().Truncate(time.Microsecond)
727+
readTime := time.Now().Add(-59 * time.Minute).Truncate(time.Microsecond)
728728
txBeforeCreate, err := client.NewTransaction(ctx, []TransactionOption{ReadOnly, WithReadTime(readTime)}...)
729729
if err != nil {
730730
t.Fatalf("client.NewTransaction: %v", err)

0 commit comments

Comments
 (0)