Skip to content

Commit

Permalink
fix(ensure): read settings from config.plugins correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
hassy authored Jul 14, 2023
1 parent 8dd7af3 commit 70e4d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/artillery-plugin-ensure/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class EnsurePlugin {
this.script = script;
this.events = events;

const checks = this.script.config.ensure || this.script.plugins.ensure;
const checks = this.script.config?.ensure || this.script.config?.plugins?.ensure;

global.artillery.ext({
ext: 'beforeExit',
Expand Down

0 comments on commit 70e4d5f

Please sign in to comment.