mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
Fix promiseutil.periodicNotify to actually resolve with correct values.
This commit is contained in:
parent
1fbaae8d8e
commit
30fdc62711
1 changed files with 4 additions and 4 deletions
|
@ -8,12 +8,12 @@ module.exports.periodicNotify = function(promise, interval) {
|
|||
resolver.progress()
|
||||
}
|
||||
|
||||
function resolve() {
|
||||
resolver.resolve()
|
||||
function resolve(value) {
|
||||
resolver.resolve(value)
|
||||
}
|
||||
|
||||
function reject() {
|
||||
resolver.reject()
|
||||
function reject(err) {
|
||||
resolver.reject(err)
|
||||
}
|
||||
|
||||
promise.then(resolve, reject)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue