From c6cb4836312c52ae31b02a8421d55e6e357d60e4 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Fri, 19 Oct 2012 21:36:05 -0700 Subject: [PATCH] UT: offer-test.js remove extra functions --- test/offer-test.js | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/test/offer-test.js b/test/offer-test.js index a47468ba4d..cb421fdefe 100644 --- a/test/offer-test.js +++ b/test/offer-test.js @@ -15,47 +15,6 @@ buster.testRunner.timeout = 5000; var alpha; -// success: callback(), error: callback(err) -var createAccounts = function (remote, src, amount, accounts, callback) { - async.forEachSeries(accounts, function (account, callback) { - remote.transaction() - .payment(src, account, Amount.from_json(amount)) - .flags('CreateAccount') - .on('proposed', function (m) { - console.log("proposed: %s", JSON.stringify(m)); - - buster.assert.equals(m.result, 'tesSUCCESS'); - - callback(); - }) - .on('error', function (m) { - console.log("error: %s", JSON.stringify(m)); - - callback('error'); - }) - .submit(); - }, callback); -}; - -// success: callback(), error: callback(err) -var creditLimit = function (remote, src, amount, callback) { - remote.transaction() - .ripple_line_set(src, Amount.from_json(amount)) - .on('proposed', function (m) { - console.log("proposed: %s", JSON.stringify(m)); - - buster.assert.equals(m.result, 'tesSUCCESS'); - - callback(); - }) - .on('error', function (m) { - console.log("error: %s", JSON.stringify(m)); - - callback('error'); - }) - .submit(); -}; - buster.testCase("Work in progress", { 'setUp' : function (done) {