paypro: fix mock server. unit controller tests.
This commit is contained in:
parent
b89ad8f3cc
commit
1c4d292a96
3 changed files with 35 additions and 7 deletions
|
|
@ -168,8 +168,9 @@ describe('PayPro (in Wallet) model', function() {
|
|||
should.exist(ntxid);
|
||||
console.log('Sent TX proposal to other copayers:');
|
||||
console.log([ntxid, ca]);
|
||||
server.close();
|
||||
done();
|
||||
server.close(function() {
|
||||
done();
|
||||
});
|
||||
} else {
|
||||
console.log('Sending TX to merchant server:');
|
||||
console.log(ntxid);
|
||||
|
|
@ -177,8 +178,9 @@ describe('PayPro (in Wallet) model', function() {
|
|||
should.exist(txid);
|
||||
console.log('TX sent:');
|
||||
console.log([ntxid, ca]);
|
||||
server.close();
|
||||
done();
|
||||
server.close(function() {
|
||||
done();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue