UT: Add test for XRP at start of path.

This commit is contained in:
Arthur Britto
2012-11-17 17:35:37 -08:00
parent ffb4955127
commit 17b51b68c7

View File

@@ -535,14 +535,14 @@ buster.testCase("Offer tests", {
}); });
}, },
"//ripple cross currency payment" : "ripple cross currency payment" :
// alice --> [XRP --> carol --> USD/mtgox] --> bob // alice --> [XRP --> carol --> USD/mtgox] --> bob
function (done) { function (done) {
var self = this; var self = this;
var seq; var seq;
self.remote.set_trace(); // self.remote.set_trace();
async.waterfall([ async.waterfall([
function (callback) { function (callback) {
@@ -589,7 +589,7 @@ buster.testCase("Offer tests", {
.payment("alice", "bob", "25/USD/mtgox") .payment("alice", "bob", "25/USD/mtgox")
.send_max("333") .send_max("333")
.on('proposed', function (m) { .on('proposed', function (m) {
console.log("proposed: %s", JSON.stringify(m)); // console.log("proposed: %s", JSON.stringify(m));
callback(m.result !== 'tesSUCCESS'); callback(m.result !== 'tesSUCCESS');
}) })
@@ -600,8 +600,9 @@ buster.testCase("Offer tests", {
testutils.verify_balances(self.remote, testutils.verify_balances(self.remote,
{ {
"alice" : [ "0/USD/mtgox", "500" ], // "alice" : [ "500" ],
"bob" : "100/USD/mtgox", "bob" : "25/USD/mtgox",
"carol" : "475/USD/mtgox",
}, },
callback); callback);
}, },