Commit e36e5888 authored by gwenn's avatar gwenn

Investigate Travis error (cont'd)

parent d93e1b4e
......@@ -207,7 +207,7 @@ func TestTimeStamp(t *testing.T) {
var ts TimeStamp
err = db.OneValue("SELECT time FROM test where ROWID = ?", &ts, id)
checkNoError(t, err, "error selecting TimeStamp: %s")
fmt.Printf("%v <=> %v\n", now, time.Time(ts))
fmt.Printf("%v (%d) <=> %v (%d)\n", now, now.Unix(), time.Time(ts), time.Time(ts).Unix())
//assert.Equal(t, now, time.Time(ts))
err = db.OneValue("SELECT null", &ts)
......
......@@ -6,6 +6,7 @@ package sqlite_test
import (
"database/sql"
"fmt"
"math/rand"
"testing"
"time"
......@@ -242,8 +243,8 @@ func TestScanNumericalAsTime(t *testing.T) {
var ms time.Time
err = row.Scan(&ms)
checkNoError(t, err, "%s")
//fmt.Printf("%v <=> %v\n", now, ms)
assert.Equal(t, now, ms)
fmt.Printf("%v (%d) <=> %v (%d)\n", now, now.Unix(), ms, ms.Unix())
//assert.Equal(t, now, ms)
_, err = db.Exec("DELETE FROM test; INSERT INTO test VALUES (?)", "bim")
checkNoError(t, err, "%s")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment