UT: Fix unit tests fro default paths.

This commit is contained in:
Arthur Britto
2013-03-08 15:54:24 -08:00
parent 81264b17b4
commit 2cc2018240

View File

@@ -493,8 +493,8 @@ buster.testCase("Sending future", {
}); });
buster.testCase("Gateway", { buster.testCase("Gateway", {
// 'setUp' : testutils.build_setup(), 'setUp' : testutils.build_setup(),
'setUp' : testutils.build_setup({ verbose: true }), // 'setUp' : testutils.build_setup({ verbose: true }),
'tearDown' : testutils.build_teardown(), 'tearDown' : testutils.build_teardown(),
"customer to customer with and without transfer fee" : "customer to customer with and without transfer fee" :
@@ -725,6 +725,7 @@ buster.testCase("Gateway", {
callback); callback);
}, },
function (callback) { function (callback) {
// Must fail, doesn't know to use the mtgox
self.what = "Alice sends 1.1/AUD/alice Bob 1/AUD/bob"; self.what = "Alice sends 1.1/AUD/alice Bob 1/AUD/bob";
self.remote.transaction() self.remote.transaction()
@@ -733,7 +734,7 @@ buster.testCase("Gateway", {
.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 !== 'terNO_LINE');
}) })
.submit(); .submit();
}, },
@@ -742,8 +743,8 @@ buster.testCase("Gateway", {
testutils.verify_balances(self.remote, testutils.verify_balances(self.remote,
{ {
"alice" : "0/AUD/mtgox", "alice" : "1.1/AUD/mtgox",
"bob" : "4/AUD/mtgox", "bob" : "3/AUD/mtgox",
}, },
callback); callback);
}, },