Fix failing test update_tests/event_group_delete_test_not_existed_event_group

This commit is contained in:
Serki 2020-10-19 21:41:11 +02:00
parent 6767b34577
commit edf7bbf150
2 changed files with 4 additions and 3 deletions

View file

@ -11,7 +11,6 @@
#include <fc/crypto/hex.hpp>
#include <fc/log/logger.hpp>
#include <fc/network/ip.hpp>
#include <fc/smart_ref_impl.hpp>
#include <graphene/chain/account_object.hpp>
#include <graphene/chain/protocol/fee_schedule.hpp>

View file

@ -1878,9 +1878,11 @@ BOOST_AUTO_TEST_CASE(event_group_delete_test_not_existed_event_group)
{
CREATE_ICE_HOCKEY_BETTING_MARKET(false, 0);
delete_event_group(nhl.id);
event_group_id_type nhl_id = nhl.id;
BOOST_CHECK_THROW(delete_event_group(nhl.id), fc::exception);
delete_event_group(nhl_id);
BOOST_CHECK_THROW(delete_event_group(nhl_id), fc::exception);
} FC_LOG_AND_RETHROW()
}