From 850c7004c838e5037b1280b38c1b6eb0f6b81ff5 Mon Sep 17 00:00:00 2001 From: jed Date: Thu, 15 Nov 2012 05:04:21 -0800 Subject: [PATCH] . --- ripple2010.vcxproj | 4 ++-- test/send-test.js | 29 ++++++++++++++++++++--------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/ripple2010.vcxproj b/ripple2010.vcxproj index 693ba0038d..374a65bd62 100644 --- a/ripple2010.vcxproj +++ b/ripple2010.vcxproj @@ -49,13 +49,13 @@ Level3 Disabled BOOST_TEST_ALTERNATIVE_INIT_API;BOOST_TEST_NO_MAIN;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0501;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - .\;..\OpenSSL\include;..\boost_1_47_0;..\protobuf\src\ + .\;..\OpenSSL\include;..\boost_1_52_0;..\protobuf\src\ ProgramDatabase Console true - ..\OpenSSL\lib\VC;..\boost_1_47_0\stage\lib;..\protobuf\vsprojects\Debug + ..\OpenSSL\lib\VC;..\boost_1_52_0\stage\lib;..\protobuf\vsprojects\Debug ssleay32MDd.lib;libeay32MTd.lib;libprotobuf.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) diff --git a/test/send-test.js b/test/send-test.js index 9d732818bd..5383c2365e 100644 --- a/test/send-test.js +++ b/test/send-test.js @@ -20,13 +20,20 @@ buster.testCase("Simple", { 'tearDown' : testutils.build_teardown(), "simple." : - function (done) { buster.assert(1); done(); + function (done) { buster.assert(1); this.remote.transaction() .payment('root', 'alice', "10000") .on('success', function (r) { done(); }).submit(); + + this.remote.transaction() + .payment('root', 'alice', "20000") + .on('success', function (r) { + done(); + }).submit(); + } }); @@ -44,8 +51,11 @@ buster.testCase("Sending", { .payment('root', 'alice', "10000") .on('success', function (r) { // Transaction sent. - - // console.log("success: %s", JSON.stringify(r)); + // buster.assert(false, "Succeded."); + // done(); + buster.assert.equals(r.result, 'terNO_DST'); + console.log("success: %s", JSON.stringify(r)); + done(); }) .on('pending', function() { // Moving ledgers along. @@ -69,11 +79,11 @@ buster.testCase("Sending", { }) .on('proposed', function (m) { // Transaction got an error. - // console.log("proposed: %s", JSON.stringify(m)); + console.log("proposed: %s", JSON.stringify(m)); buster.assert.equals(m.result, 'terNO_DST'); - - got_proposed = true; + //done(); + got_proposed = true; self.remote.ledger_accept(); // Move it along. }) @@ -87,6 +97,7 @@ buster.testCase("Sending", { // console.log("error: %s", m); buster.assert(false); + done(); }) .submit(); }, @@ -97,7 +108,7 @@ buster.testCase("Sending", { this.remote.transaction() .ripple_line_set("root", "100/USD/alice") .on('proposed', function (m) { - // console.log("proposed: %s", JSON.stringify(m)); + console.log("proposed: %s", JSON.stringify(m)); buster.assert.equals(m.result, 'terNO_DST'); @@ -105,7 +116,7 @@ buster.testCase("Sending", { }) .submit(); }, - +/* "credit_limit" : function (done) { var self = this; @@ -248,7 +259,7 @@ buster.testCase("Sending", { buster.refute(error, self.what); done(); }); - }, + },*/ }); // XXX In the future add ledger_accept after partial retry is implemented in the server.