mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 07:53:22 +02:00
Upgrading STF for security reasons (#813)
* Upgrading STF for security reasons Signed-off-by: Denis barbaron <denis.barbaron@orange.com> * update semaphore files Signed-off-by: Denis barbaron <denis.barbaron@orange.com> * upgrading STF for security reasons v2 Signed-off-by: Denis barbaron <denis.barbaron@orange.com> * update yarn.lock file Signed-off-by: Denis barbaron <denis.barbaron@orange.com> --------- Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright © 2019 code initially contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
* Copyright © 2019-2014 code initially contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
**/
|
||||
|
||||
const Promise = require('bluebird')
|
||||
@@ -184,7 +184,7 @@ apiutil.setIntervalWrapper = function(fn, numTimes, delay) {
|
||||
return fn().then(function(result) {
|
||||
if (result.status || ++counter === numTimes) {
|
||||
if (!result.status && counter === numTimes) {
|
||||
log.debug('%s() failed %s times in a loop!', fn.name, counter)
|
||||
log.warn('%s() failed %s times in a loop!', fn.name, counter)
|
||||
}
|
||||
clearInterval(interval)
|
||||
resolve(result.data)
|
||||
|
||||
Reference in New Issue
Block a user