Skip to content

Commit 9b53c12

Browse files
committed
minor fix for o11y build tags
1 parent d62bf53 commit 9b53c12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/testObservability/helper/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ const getBuildDetails = (bsConfig) => {
437437
/* Pick from run settings */
438438
buildName = buildName || bsConfig["run_settings"]["build_name"];
439439
projectName = projectName || bsConfig["run_settings"]["project_name"];
440-
buildTags = [...buildTags, bsConfig["run_settings"]["build_tag"]];
440+
if(!utils.isUndefined(bsConfig["run_settings"]["build_tag"])) buildTags = [...buildTags, bsConfig["run_settings"]["build_tag"]];
441441

442442
buildName = buildName || path.basename(path.resolve(process.cwd()));
443443

bin/testObservability/reporter/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ class MyReporter {
386386
event_type: eventType === "TestRunSkipped" ? "TestRunFinished" : eventType,
387387
}
388388

389-
if(eventType.match(/Finished/)) delete testData.started_at;
389+
if(eventType == "HookRunFinished") delete testData.started_at;
390390

391391
if(eventType.match(/HookRun/)) {
392392
testData['hook_type'] = HOOK_TYPES_MAP[testData['hook_type']];

0 commit comments

Comments
 (0)