Skip to content

Commit

Permalink
fix: handle executor setup errors (#561)
Browse files Browse the repository at this point in the history
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
  • Loading branch information
fsamin authored Aug 3, 2022
1 parent f6b7419 commit e3b3d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process_testcase.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3b3d88

Please sign in to comment.