Skip to content

Commit

Permalink
test: truncate precision
Browse files Browse the repository at this point in the history
  • Loading branch information
asdine committed Feb 17, 2024
1 parent f54aa24 commit 8efa2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func TestDriverWithTimeValues(t *testing.T) {
assert.NoError(t, err)
defer db.Close()

now := time.Now().UTC()
now := time.Now().UTC().Truncate(time.Microsecond)
_, err = db.Exec("CREATE TABLE test(a TIMESTAMP); INSERT INTO test (a) VALUES (?)", now)
assert.NoError(t, err)

Expand Down

0 comments on commit 8efa2a3

Please sign in to comment.