Fixed failing builder tests due to the v0.9.0 change

Этот коммит содержится в:
Fredrik Lönnblad 2020-03-23 13:12:51 +01:00
родитель 93abaf53bc
коммит e6e66731b5

Просмотреть файл

@ -28,6 +28,7 @@ import (
"fmt"
"github.com/cucumber/godog"
messages "github.com/cucumber/messages-go/v10"
)
func thereAreGodogs(available int) error {
@ -55,7 +56,7 @@ func FeatureContext(s *godog.Suite) {
s.Step("^I eat (\\d+)$", iEat)
s.Step("^there should be (\\d+) remaining$", thereShouldBeRemaining)
s.BeforeScenario(func(interface{}) {
s.BeforeScenario(func(*messages.Pickle) {
Godogs = 0 // clean the state before every scenario
})
}
@ -67,6 +68,8 @@ import (
"fmt"
"github.com/cucumber/godog"
messages "github.com/cucumber/messages-go/v10"
"godogs"
)
@ -95,7 +98,7 @@ func FeatureContext(s *godog.Suite) {
s.Step("^I eat (\\d+)$", iEat)
s.Step("^there should be (\\d+) remaining$", thereShouldBeRemaining)
s.BeforeScenario(func(interface{}) {
s.BeforeScenario(func(*messages.Pickle) {
godogs.Godogs = 0 // clean the state before every scenario
})
}