JS Tests: Replace one of the hard-coded fees in the testsuite. More to go.

This commit is contained in:
Stefan Thomas
2013-07-26 12:59:07 -07:00
parent bb85d67f37
commit a4b19019ee
2 changed files with 17 additions and 9 deletions

View File

@@ -160,7 +160,9 @@ var create_accounts = function (remote, src, amount, accounts, callback) {
.on('proposed', function (m) {
// console.log("proposed: %s", JSON.stringify(m));
callback(m.result != 'tesSUCCESS');
if (m.result != 'tesSUCCESS') {
callback(new Error("Payment to create account did not succeed."));
} else callback(null);
})
.on('error', function (m) {
// console.log("error: %s", JSON.stringify(m));