[bitshares/bitshares-core] Fix tests (#1126)

I’m running Arch with clang 6.0.0, boost 1.67.0.

«`
nathan@spiral ~/dev/bitshares-core/build/debug/tests (git)-[remotes/origin/develop] % ./chain_test -t operation_tests/call_order_update_test :(
Random number generator seeded to 1530975831
GRAPHENE_TESTING_GENESIS_TIMESTAMP is 1431700000
Running 1 test case…
231200ms th_a db_management.cpp:153 open ] Wiping object_database due to missing or wrong version
231200ms th_a object_database.cpp:93 wipe ] Wiping object database…
231200ms th_a object_database.cpp:95 wipe ] Done wiping object databse.
231200ms th_a object_database.cpp:106 open ] Opening object database from /tmp/graphene-tmp/17d1-b3dc-ad22-3e1d …
231200ms th_a object_database.cpp:111 open ] Done opening object database.
231248ms th_a db_update.cpp:230 check_for_blackswan ] *call_itr: {«id»:»1.8.1″,»borrower»:»1.2.16″,»collateral»:20000,»debt»:85000,»call_price»:{«base»:{«amount»:16,»asset_id»:»1.3.0″},»quote»:{«amount»:119,»asset_id»:»1.3.2″}}}
231248ms th_a db_update.cpp:240 check_for_blackswan ] Black Swan detected on asset USDBIT (1.3.2) at block 1:
Least collateralized call: 0.23529411764705882 4.25000000000000000
Settle Price: 1.00000000000000000 1.00000000000000000
Max: 1.00000000000000000 1.00000000000000000

231249ms th_a db_update.cpp:241 check_for_blackswan ] enable_black_swan: false
231249ms th_a undo_database.hpp:68 ~session ] 10 assert_exception: Assert Exception
maybe_found != nullptr: Unable to find Object 1.8.1
{«id»:»1.8.1″}
th_a index.hpp:111 get

{}
th_a undo_database.cpp:123 undo
terminate called after throwing an instance of ‘fc::assert_exception’
unknown location(0): fatal error: in «operation_tests/call_order_update_test»: signal: SIGABRT (application abort requested)
../../tests/tests/operation_tests.cpp(147): last checkpoint

*** 1 failure is detected in the test module «Master Test Suite»
201 nathan@spiral ~/dev/bitshares-core/build/debug/tests (git)-[remotes/origin/develop] % ./chain_test -t operation_tests/old_call_order_update_test_after_hardfork_583 :(
Random number generator seeded to 1530975832
GRAPHENE_TESTING_GENESIS_TIMESTAMP is 1431700000
Running 1 test case…
232891ms th_a db_management.cpp:153 open ] Wiping object_database due to missing or wrong version
232891ms th_a object_database.cpp:93 wipe ] Wiping object database…
232891ms th_a object_database.cpp:95 wipe ] Done wiping object databse.
232891ms th_a object_database.cpp:106 open ] Opening object database from /tmp/graphene-tmp/7f57-bd5b-56d8-3f12 …
232891ms th_a object_database.cpp:111 open ] Done opening object database.
232935ms th_a db_maint.cpp:897 process_hf_868_890 ] Processing hard fork core-868-890 at block 3
232935ms th_a db_maint.cpp:981 process_hf_868_890 ] Done processing hard fork core-868-890 at block 3
232935ms th_a db_maint.cpp:805 update_and_match_cal ] Updating all call orders for hardfork core-343 at block 3
232935ms th_a db_maint.cpp:833 update_and_match_cal ] Done updating all call orders for hardfork core-343 at block 3
232938ms th_a db_update.cpp:230 check_for_blackswan ] *call_itr: {«id»:»1.8.1″,»borrower»:»1.2.16″,»collateral»:20000,»debt»:85000,»call_price»:{«base»:{«amount»:16,»asset_id»:»1.3.0″},»quote»:{«amount»:119,»asset_id»:»1.3.2″}}}
232938ms th_a db_update.cpp:240 check_for_blackswan ] Black Swan detected on asset USDBIT (1.3.2) at block 4:
Least collateralized call: 0.23529411764705882 4.25000000000000000
Settle Price: 1.00000000000000000 1.00000000000000000
Max: 1.50000000000000000 0.66666666666666663

232938ms th_a db_update.cpp:241 check_for_blackswan ] enable_black_swan: false
232939ms th_a undo_database.hpp:68 ~session ] 10 assert_exception: Assert Exception
maybe_found != nullptr: Unable to find Object 1.8.1
{«id»:»1.8.1″}
th_a index.hpp:111 get

{}
th_a undo_database.cpp:123 undo
terminate called after throwing an instance of ‘fc::assert_exception’
unknown location(0): fatal error: in «operation_tests/old_call_order_update_test_after_hardfork_583»: signal: SIGABRT (application abort requested)
../../tests/tests/operation_tests.cpp(249): last checkpoint

*** 1 failure is detected in the test module «Master Test Suite»
«`

Добавить комментарий