Skip to content

Commit ac1063f

Browse files
added changes for RBFCU FIX
1 parent b131de0 commit ac1063f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/helpers/atsHelper.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require('path');
22
const fs = require('fs');
33
const { consoleHolder } = require('../testObservability/helper/constants');
44
const HttpsProxyAgent = require('https-proxy-agent');
5-
5+
const { v4: uuidv4 } = require('uuid');
66
const axios = require('axios'),
77
logger = require('./logger').winstonLogger,
88
utils = require('./utils'),
@@ -108,7 +108,9 @@ exports.patchCypressConfigFileContent = (bsConfig) => {
108108

109109
let confPath = bsConfig.run_settings.cypress_config_file;
110110
let patchedConfPathList = confPath.split(path.sep);
111-
patchedConfPathList[patchedConfPathList.length - 1] = 'patched_ats_config_file.js'
111+
const uniqueNamePatchFileName = `patched_ats_config_file_${uuidv4()}.js`;
112+
patchedConfPathList[patchedConfPathList.length - 1] = uniqueNamePatchFileName;
113+
logger.info("Patch file name is " + uniqueNamePatchFileName);
112114
const patchedConfPath = patchedConfPathList.join(path.sep);
113115

114116
bsConfig.run_settings.patched_cypress_config_file = patchedConfPath;

0 commit comments

Comments
 (0)