More func tests.
This commit is contained in:
parent
35d607a62c
commit
f0cb772b7a
7 changed files with 19 additions and 8 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue