From c5f9ac573263826bf5ddba60a397f93f709597e4 Mon Sep 17 00:00:00 2001 From: francois samin Date: Wed, 3 Aug 2022 15:21:47 +0200 Subject: [PATCH] fix: handle executor setup errors Signed-off-by: francois samin --- process_testcase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process_testcase.go b/process_testcase.go index 35fdedd5..1cb32e15 100644 --- a/process_testcase.go +++ b/process_testcase.go @@ -250,13 +250,13 @@ func (v *Venom) runTestSteps(ctx context.Context, tc *TestCase, tsIn *TestStepRe if e != nil { _, known := knowExecutors[e.Name()] if !known { - knowExecutors[e.Name()] = struct{}{} ctx, err = e.Setup(ctx, tc.Vars) if err != nil { tc.AppendError(err) Error(ctx, "unable to setup executor: %v", err) break } + knowExecutors[e.Name()] = struct{}{} defer func(ctx context.Context) { if err := e.TearDown(ctx); err != nil { tc.AppendError(err)