From d47bf73dd805ffded1ec285900e87f527c28ce85 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 26 Jul 2016 11:03:29 -0300 Subject: [PATCH] test allow duplicate tx if no id is specified --- test/integration/server.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/integration/server.js b/test/integration/server.js index 387783d..6a568eb 100644 --- a/test/integration/server.js +++ b/test/integration/server.js @@ -3053,7 +3053,17 @@ describe('Wallet service', function() { should.not.exist(err); should.exist(txs); txs.length.should.equal(1); - done(); + txOpts.txProposalId = null; + server.createTx(txOpts, function(err, tx) { + should.not.exist(err); + should.exist(tx); + tx.id.should.not.equal('123'); + server.storage.fetchTxs(wallet.id, {}, function(err, txs) { + should.not.exist(err); + txs.length.should.equal(2); + done(); + }); + }); }); }); });