paypro: fix mock server. unit controller tests.

This commit is contained in:
Christopher Jeffrey 2014-07-29 17:44:10 -07:00 committed by Manuel Araoz
commit 1c4d292a96
3 changed files with 35 additions and 7 deletions

View file

@ -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();
});
});
}
});