Skip to content

Commit

Permalink
fix(publish-metrics): fix sleep init
Browse files Browse the repository at this point in the history
  • Loading branch information
InesNi committed Feb 19, 2024
1 parent db4ca95 commit 36cc1e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/artillery-plugin-publish-metrics/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ module.exports = {

const semver = require('semver');

const sleep = async function (n) {
async function sleep(n) {
return new Promise((resolve, _reject) => {
setTimeout(function () {
resolve();
}, n);
});
};
}

// TODO: Extract into a utility function in Artillery itself
function versionCheck(range) {
Expand Down

0 comments on commit 36cc1e5

Please sign in to comment.