mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
UT: Add test for XRP at start of path.
This commit is contained in:
@@ -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);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user