Skip to content

Commit 36cc1e5

Browse files
committed
fix(publish-metrics): fix sleep init
1 parent db4ca95 commit 36cc1e5

File tree

1 file changed

+2
-2
lines changed
  • packages/artillery-plugin-publish-metrics/lib

1 file changed

+2
-2
lines changed

packages/artillery-plugin-publish-metrics/lib/util.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ module.exports = {
66

77
const semver = require('semver');
88

9-
const sleep = async function (n) {
9+
async function sleep(n) {
1010
return new Promise((resolve, _reject) => {
1111
setTimeout(function () {
1212
resolve();
1313
}, n);
1414
});
15-
};
15+
}
1616

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

0 commit comments

Comments
 (0)