Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #466 from LiskHQ/400-test-timeout
Browse files Browse the repository at this point in the history
Extend test timeout - Closes #400
  • Loading branch information
karmacoma committed Mar 9, 2017
2 parents d817fb2 + bd1562b commit f0f7303
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions test/api/dapps.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,16 +773,18 @@ describe('PUT /api/dapps/withdrawal', function () {

putWithdrawal(validParams, function (err, res) {
node.expect(res.body).to.have.property('success').to.be.not.ok;
node.get('/api/transactions/queued', function (err, trsRes) {
node.expect(trsRes.body).to.have.property('success').to.be.ok;
node.expect(trsRes.body.transactions).to.be.an('array').and.to.have.length.of.at.least(1);
var trsQueued = trsRes.body.transactions.find(function (t) {
return t.asset.outTransfer.transactionId === validParams.transactionId;
if (res.body.error !== 'Transaction is already processed: ' + validParams.transactionId) {
node.get('/api/transactions/queued', function (err, trsRes) {
node.expect(trsRes.body).to.have.property('success').to.be.ok;
node.expect(trsRes.body.transactions).to.be.an('array').and.to.have.length.of.at.least(1);
var trsQueued = trsRes.body.transactions.find(function (t) {
return t.asset.outTransfer.transactionId === validParams.transactionId;
});
node.expect(trsQueued).to.be.not.empty;
node.expect(res.body).to.have.property('error').to.equal('Transaction is already processed: ' + trsQueued.id);
done();
});
node.expect(trsQueued).to.be.not.empty;
node.expect(res.body).to.have.property('error').to.equal('Transaction is already processed: ' + trsQueued.id);
done();
});
}
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--timeout 500s
--timeout 1200s

0 comments on commit f0f7303

Please sign in to comment.