From 0d205bc43e021caad3b0aa4aa69d2c80fda5b78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20L=C3=B6nnblad?= Date: Sat, 29 Feb 2020 16:55:35 -0300 Subject: [PATCH] Updated builder_test.go --- builder_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/builder_test.go b/builder_test.go index 327b502..5bc8ce8 100644 --- a/builder_test.go +++ b/builder_test.go @@ -28,6 +28,7 @@ import ( "fmt" "github.com/cucumber/godog" + "github.com/cucumber/messages-go/v9" ) 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" + "github.com/cucumber/messages-go/v9" + "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 }) }