Skip to content

Commit 89ceac1

Browse files
committed
update bdd tests
1 parent 1b260b8 commit 89ceac1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bdd_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package errors
22

33
import (
4+
"context"
45
stderrors "errors"
56
"fmt"
67
"net/http"
@@ -382,8 +383,9 @@ func InitializeTestSuite(ctx *godog.TestSuiteContext) {
382383
}
383384

384385
func InitializeScenario(ctx *godog.ScenarioContext) {
385-
ctx.BeforeScenario(func(*godog.Scenario) {
386+
ctx.Before(func(ctx context.Context, sc *godog.Scenario) (context.Context, error) {
386387
expectedError = ErrUnknown
388+
return ctx, nil
387389
})
388390

389391
// Given

0 commit comments

Comments
 (0)