diff --git a/suite_context_test.go b/suite_context_test.go index a554a52..b6efbe6 100644 --- a/suite_context_test.go +++ b/suite_context_test.go @@ -802,7 +802,7 @@ func TestScenarioContext_After_cancelled(t *testing.T) { ctxDone := make(chan struct{}) suite := TestSuite{ ScenarioInitializer: func(scenarioContext *ScenarioContext) { - scenarioContext.When(`^foo$`, func() { return }) + scenarioContext.When(`^foo$`, func() {}) scenarioContext.After(func(ctx context.Context, sc *Scenario, err error) (context.Context, error) { go func() { <-ctx.Done()