Skip to content

Commit ca79c8d

Browse files
committed
fix O11y disable flags
1 parent 7a8ef57 commit ca79c8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/testObservability/helper/helper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,7 @@ exports.resolveModule = (module) => {
804804
};
805805

806806
const getReRunSpecs = (rawArgs) => {
807+
let finalArgs = rawArgs;
807808
if (this.isTestObservabilitySession() && this.shouldReRunObservabilityTests()) {
808809
let startIdx = -1, numEle = 0;
809810
for(let idx=0; idx<rawArgs.length; idx++) {
@@ -816,10 +817,9 @@ const getReRunSpecs = (rawArgs) => {
816817
}
817818
}
818819
if(startIdx != -1) rawArgs.splice(startIdx, numEle + 1);
819-
return [...rawArgs, '--spec', process.env.BROWSERSTACK_RERUN_TESTS];
820-
} else {
821-
return rawArgs;
820+
finalArgs = [...rawArgs, '--spec', process.env.BROWSERSTACK_RERUN_TESTS];
822821
}
822+
return finalArgs.filter(item => item !== '--disable-test-observability' && item !== '--disable-browserstack-automation');
823823
}
824824

825825
const getLocalSessionReporter = () => {

0 commit comments

Comments
 (0)