Skip to content

Commit

Permalink
test(datastore): Correct read time before creating entities
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh committed Aug 23, 2023
1 parent 6a45f26 commit 28249b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ func TestIntegration_AggregationQueries(t *testing.T) {
}

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

0 comments on commit 28249b9

Please sign in to comment.