From b52632d09b9ddb12ffc69ea6c0310db00718ef31 Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Thu, 14 Jan 2021 10:57:08 +0100 Subject: [PATCH] Correct way of getting connectivity (#3255) --- lib/plugins/lateststorer/index.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/plugins/lateststorer/index.js b/lib/plugins/lateststorer/index.js index 82dc80d08..6cd6d69c3 100644 --- a/lib/plugins/lateststorer/index.js +++ b/lib/plugins/lateststorer/index.js @@ -42,6 +42,8 @@ module.exports = { this.options.graphite.includeQueryParams, this.alias ); + const connectivity = graphiteUtil.getConnectivity(options); + if (this.useScreenshots) { const imageFullPath = path.join(baseDir, message.data.screenshot); await this.storageManager.copyFileToDir( @@ -52,7 +54,7 @@ module.exports = { '.' + this.options.browser + '.' + - this.options.browsertime.connectivity.profile + + connectivity + '.' + this.screenshotType ); @@ -68,7 +70,7 @@ module.exports = { '.' + this.options.browser + '.' + - this.options.browsertime.connectivity.profile + + connectivity + '.mp4' ); } @@ -82,12 +84,7 @@ module.exports = { const data = JSON.stringify(json, null, 0); return this.storageManager.writeDataToDir( data, - name + - '.' + - this.options.browser + - '.' + - this.options.browsertime.connectivity.profile + - '.json', + name + '.' + this.options.browser + '.' + connectivity + '.json', newPath ); }