Merge pull request #176 from peerplays-network/feature/SON-142
[SON-142] Fix the failed tests in SONs-base
This commit is contained in:
commit
6c8f4bf9d5
2 changed files with 11 additions and 0 deletions
|
|
@ -402,6 +402,15 @@ namespace graphene { namespace db {
|
|||
DerivedIndex::remove(obj);
|
||||
}
|
||||
|
||||
virtual const object& insert( object&& obj )override
|
||||
{
|
||||
const auto& res = DerivedIndex::insert(std::move(obj));
|
||||
for( const auto& item : _sindex )
|
||||
item->object_inserted( res );
|
||||
on_add(res);
|
||||
return res;
|
||||
}
|
||||
|
||||
virtual void modify( const object& obj, const std::function<void(object&)>& m )override
|
||||
{
|
||||
save_undo( obj );
|
||||
|
|
|
|||
|
|
@ -141,6 +141,8 @@ database_fixture::database_fixture()
|
|||
mhplugin->plugin_startup();
|
||||
bookieplugin->plugin_startup();
|
||||
affiliateplugin->plugin_startup();
|
||||
// stats api requests affiliate_stats plugin from app, so add it to app plugin list
|
||||
app.enable_plugin(affiliateplugin->plugin_name());
|
||||
|
||||
generate_block();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue