diff options
Diffstat (limited to 'transaction.cpp')
-rw-r--r-- | transaction.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/transaction.cpp b/transaction.cpp index 6ebe6275..c7a0e61d 100644 --- a/transaction.cpp +++ b/transaction.cpp @@ -90,8 +90,9 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin) o["sender"] = toString(txFromFields.sender()); } - catch(...) + catch(Exception const& _e) { + cnote << "Transaction Exception: " << diagnostic_information(_e); o.erase(o.find("transaction")); } } @@ -115,7 +116,21 @@ BOOST_AUTO_TEST_CASE(ttWrongRLPTransaction) BOOST_AUTO_TEST_CASE(tt10mbDataField) { - dev::test::executeTests("tt10mbDataField", "/TransactionTests", dev::test::doTransactionTests); + for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) + { + string arg = boost::unit_test::framework::master_test_suite().argv[i]; + if (arg == "--bigdata" || arg == "--all") + { + auto start = chrono::steady_clock::now(); + + dev::test::executeTests("tt10mbDataField", "/TransactionTests", dev::test::doTransactionTests); + + auto end = chrono::steady_clock::now(); + auto duration(chrono::duration_cast<chrono::milliseconds>(end - start)); + cnote << "test duration: " << duration.count() << " milliseconds.\n"; + } + } + } BOOST_AUTO_TEST_CASE(ttCreateTest) |