Skip to content

Commit

Permalink
[*] increase delay in TestQueryWithTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Jan 15, 2022
1 parent 30395c8 commit fa9335c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgxmock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ func TestQueryWithTimeout(t *testing.T) {
rs := NewRows([]string{"id", "title"}).FromCSVString("5,hello world")

mock.ExpectQuery("SELECT (.+) FROM articles WHERE id = ?").
WillDelayFor(15 * time.Millisecond). // Query will take longer than timeout
WillDelayFor(50 * time.Millisecond). // Query will take longer than timeout
WithArgs(5).
WillReturnRows(rs)

Expand Down

0 comments on commit fa9335c

Please sign in to comment.