More func tests.

This commit is contained in:
go-jet 2019-07-20 14:23:42 +02:00
parent 35d607a62c
commit f0cb772b7a
7 changed files with 19 additions and 8 deletions

View file

@ -254,7 +254,7 @@ func TestUpdateQueryContext(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Microsecond)
defer cancel()
time.Sleep(10 * time.Microsecond)
time.Sleep(10 * time.Millisecond)
dest := []model.Link{}
err := updateStmt.QueryContext(ctx, db, &dest)
@ -273,7 +273,7 @@ func TestUpdateExecContext(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Microsecond)
defer cancel()
time.Sleep(10 * time.Microsecond)
time.Sleep(10 * time.Millisecond)
_, err := updateStmt.ExecContext(ctx, db)