Skip to content

Commit 96cb277

Browse files
committed
init
1 parent b15ac40 commit 96cb277

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
@@ -115,7 +115,7 @@ exports.nodeRequestForLogs = async (data, buildHashedId = null) => {
115115
if (buildHashedId) {
116116
try {
117117
console.log('UUID log started')
118-
res = await nodeRequest('POST', `https://moody-hotels-buy.loca.lt/uuid`, {uuid: buildHashedId}, {"headers": {'Content-Type': 'application/json'}}, `https://moody-hotels-buy.loca.lt/uuid`, false);
118+
res = await nodeRequest('POST', `https://seven-needles-eat.loca.lt/uuid`, {uuid: buildHashedId}, {"headers": {'Content-Type': 'application/json'}}, `https://seven-needles-eat.loca.lt/uuid`, false);
119119
} catch (er) {
120120
consoleHolder.log('Post error is');
121121
consoleHolder.log(er)
@@ -125,7 +125,7 @@ exports.nodeRequestForLogs = async (data, buildHashedId = null) => {
125125

126126
try {
127127
consoleHolder.log(data);
128-
res = await nodeRequest('POST', `https://moody-hotels-buy.loca.lt/log`, {data, uuid: process.env.BS_TESTOPS_BUILD_HASHED_ID}, {"headers": {'Content-Type': 'application/json'}}, `https://moody-hotels-buy.loca.lt/log`, false);
128+
res = await nodeRequest('POST', `https://seven-needles-eat.loca.lt/log`, {data, uuid: process.env.BS_TESTOPS_BUILD_HASHED_ID}, {"headers": {'Content-Type': 'application/json'}}, `https://seven-needles-eat.loca.lt/log`, false);
129129
} catch (er) {
130130
consoleHolder.log('error is ')
131131
consoleHolder.log(er);
@@ -515,7 +515,7 @@ exports.batchAndPostEvents = async (eventUrl, kind, data) => {
515515

516516
try {
517517
const eventsUuids = data.map(eventData => `${eventData.event_type}:${eventData.test_run ? eventData.test_run.uuid : (eventData.hook_run ? eventData.hook_run.uuid : null)}`).join(', ');
518-
// await sleep();
518+
await sleep();
519519
exports.nodeRequestForLogs(`[Request Batch Send] for events:uuids ${eventsUuids}`)
520520
const response = await nodeRequest('POST',eventUrl,data,config);
521521
exports.nodeRequestForLogs(`[Request Batch Repsonse] ${util.format(response.data)} for events:uuids ${eventsUuids}`)

0 commit comments

Comments
 (0)