diff --git a/test/offer-test.js b/test/offer-test.js index 97ca2548d6..725ebd230b 100644 --- a/test/offer-test.js +++ b/test/offer-test.js @@ -320,17 +320,17 @@ buster.testCase("Offer tests", { }) .submit(); }, - function (callback) { - self.what = "Display ledger"; - - self.remote.request_ledger('current', true) - .on('success', function (m) { - console.log("Ledger: %s", JSON.stringify(m, undefined, 2)); - - callback(); - }) - .request(); - }, +// function (callback) { +// self.what = "Display ledger"; +// +// self.remote.request_ledger('current', true) +// .on('success', function (m) { +// console.log("Ledger: %s", JSON.stringify(m, undefined, 2)); +// +// callback(); +// }) +// .request(); +// }, function (callback) { self.what = "Create crossing offer."; diff --git a/test/server-test.js b/test/server-test.js index c4502e5f07..dd73127e0f 100644 --- a/test/server-test.js +++ b/test/server-test.js @@ -8,10 +8,8 @@ var Server = require("./server.js").Server; var alpha; buster.testCase("Standalone server startup", { - - "server start and stop" : function (done) { - alpha = Server.from_config("alpha",true); //ADD ,true for verbosity + alpha = Server.from_config("alpha", false); //ADD ,true for verbosity alpha .on('started', function () { diff --git a/test/test-test.js b/test/test-test.js deleted file mode 100644 index 109454e99b..0000000000 --- a/test/test-test.js +++ /dev/null @@ -1,90 +0,0 @@ -var async = require("async"); -var buster = require("buster"); - -var Amount = require("../src/js/amount.js").Amount; -var Remote = require("../src/js/remote.js").Remote; -var Server = require("./server.js").Server; - - -var child = require("child_process"); //Testing spawn - - -var testutils = require("./testutils.js"); - -buster.spec.expose(); - -describe("My thing", function () { - it("states the obvious", function () { - expect(true).toBe(true);; - }); - - //var spawn = child.spawn, - - ls = child.spawn('ls', ['-lh', '/']); - - ls.stdout.on('data', function (data) { - console.log('stdout: ' + data); - }); - - ls.stderr.on('data', function (data) { - console.log('stderr: ' + data); - }); - - ls.on('exit', function (code) { - console.log('child process exited with code ' + code); - }); - -}); - -/* - -buster.testCase("Basic Path finding", { - 'setUp' : testutils.build_setup(), - 'tearDown' : testutils.build_teardown(), - - "two parallel paths, a -> c and a -> b -> c" : - function (done) { - var self = this; - - async.waterfall([ - function (callback) { - self.what = "Create accounts."; - - testutils.create_accounts(self.remote, "root", "10000.0", ["sally","bob","rod"], callback); - }, - function (callback) { - self.what = "Set credit limits."; - - testutils.credit_limits(self.remote, - { - "rod" : "40/USD/alice", - "bob" : "100/USD/alice", - "rod" : "37/USD/bob", - }, - callback); - }, - - function (callback) { - self.what = "Find path from alice to rod"; - - self.remote.request_ripple_path_find("alice", "rod", "55/USD/rod", - [ { 'currency' : "USD" } ]) - .on('success', function (m) { - // 2 alternatives. - buster.assert.equals(2, m.alternatives.length) - // Path is empty. - //buster.assert.equals(0, m.alternatives[0].paths_canonical.length) - - callback(); - }) - .request(); - }, - ], function (error) { - buster.refute(error, self.what); - done(); - }); - }, - -}); - -*/ \ No newline at end of file