1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-07-05 00:38:45 +02:00

fix: make no argument passed validation opt-in

This commit is contained in:
Ivo Gosemann
2023-12-11 17:33:56 +01:00
parent b2d135c5e4
commit a6a27b71b9
8 changed files with 114 additions and 15 deletions

View File

@ -1,3 +1,4 @@
//go:build go1.8
// +build go1.8
package sqlmock
@ -437,7 +438,6 @@ func TestContextExecErrorDelay(t *testing.T) {
// test that return of error is delayed
var delay time.Duration = 100 * time.Millisecond
mock.ExpectExec("^INSERT INTO articles").
WithArgs("hello").
WillReturnError(errors.New("slow fail")).
WillDelayFor(delay)