MCPcopy Create free account
hub / github.com/apache/thrift / TestForCompletion

Function TestForCompletion

lib/nodejs/test/test_driver.mjs:332–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330
331 //We wait up to retry_limit * retry_interval for the test suite to complete
332 function TestForCompletion() {
333 if (test_complete && callback) {
334 callback("Server successfully tested!");
335 } else {
336 if (++retrys < retry_limit) {
337 setTimeout(TestForCompletion, retry_interval);
338 } else if (callback) {
339 callback(
340 "Server test failed to complete after " +
341 (retry_limit * retry_interval) / 1000 +
342 " seconds",
343 );
344 }
345 }
346 }
347
348 setTimeout(TestForCompletion, retry_interval);
349}

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected