From e6e66731b51590e395807ad34bab8c7282040629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20L=C3=B6nnblad?= Date: Mon, 23 Mar 2020 13:12:51 +0100 Subject: [PATCH] Fixed failing builder tests due to the v0.9.0 change --- builder_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/builder_test.go b/builder_test.go index f623bd8..f2a0765 100644 --- a/builder_test.go +++ b/builder_test.go @@ -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 }) }