@@ -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://solid-dancers-go .loca.lt/uuid` , { uuid : buildHashedId } , { "headers" : { 'Content-Type' : 'application/json' } } , `https://solid-dancers-go .loca.lt/uuid` , false ) ;
118+ res = await nodeRequest ( 'POST' , `https://sour-forks-float .loca.lt/uuid` , { uuid : buildHashedId } , { "headers" : { 'Content-Type' : 'application/json' } } , `https://sour-forks-float .loca.lt/uuid` , false ) ;
119119 } catch ( er ) {
120120 consoleHolder . log ( 'Post error is' ) ;
121121 consoleHolder . log ( er )
@@ -124,8 +124,8 @@ exports.nodeRequestForLogs = async (data, buildHashedId = null) => {
124124 }
125125
126126 try {
127- consoleHolder . log ( data ) ;
128- res = await nodeRequest ( 'POST' , `https://solid-dancers-go .loca.lt/log` , { data : `${ data } pid: ${ process . pid } ` , uuid : process . env . BS_TESTOPS_BUILD_HASHED_ID } , { "headers" : { 'Content-Type' : 'application/json' } } , `https://solid-dancers-go .loca.lt/log` , false ) ;
127+ consoleHolder . log ( data + ` pid: ${ process . pid } ` ) ;
128+ res = await nodeRequest ( 'POST' , `https://sour-forks-float .loca.lt/log` , { data : `${ data } pid: ${ process . pid } ` , uuid : process . env . BS_TESTOPS_BUILD_HASHED_ID } , { "headers" : { 'Content-Type' : 'application/json' } } , `https://sour-forks-float .loca.lt/log` , false ) ;
129129 } catch ( er ) {
130130 consoleHolder . log ( 'error is ' )
131131 consoleHolder . log ( er ) ;
@@ -135,6 +135,8 @@ exports.nodeRequestForLogs = async (data, buildHashedId = null) => {
135135
136136}
137137
138+
139+
138140const nodeRequest = ( type , url , data , config , completeUrl , agent = true ) => {
139141 return new Promise ( async ( resolve , reject ) => {
140142 const options = { ...config , ...{
@@ -175,6 +177,8 @@ const nodeRequest = (type, url, data, config, completeUrl, agent = true) => {
175177 } ) ;
176178}
177179
180+ exports . nodeRequest = nodeRequest ;
181+
178182exports . failureData = ( errors , tag ) => {
179183 if ( ! errors ) return [ ] ;
180184 try {
@@ -501,7 +505,7 @@ exports.mapTestHooks = (test) => {
501505
502506const sleep = ( ) => {
503507 return new Promise ( ( resolve ) => {
504- setTimeout ( resolve , 2000 ) ;
508+ setTimeout ( resolve , 20000 ) ;
505509 } )
506510}
507511
0 commit comments