You've already forked go-sqlmock
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:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user