Skip to content

Commit 8efa2a3

Browse files
committed
test: truncate precision
1 parent f54aa24 commit 8efa2a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/driver_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func TestDriverWithTimeValues(t *testing.T) {
269269
assert.NoError(t, err)
270270
defer db.Close()
271271

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

0 commit comments

Comments
 (0)