Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyanzhao committed Oct 21, 2020
1 parent 9b82ac9 commit b2037b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/server/test/capacity_unit_calculator_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class mock_capacity_unit_calculator : public capacity_unit_calculator
explicit mock_capacity_unit_calculator(dsn::replication::replica_base *r)
: capacity_unit_calculator(
r,
std::make_shared<hotkey_collector>(dsn::replication::hotkey_type::READ, this),
std::make_shared<hotkey_collector>(dsn::replication::hotkey_type::WRITE, this))
std::make_shared<hotkey_collector>(dsn::replication::hotkey_type::READ, r),
std::make_shared<hotkey_collector>(dsn::replication::hotkey_type::WRITE, r))
{
}

Expand Down

0 comments on commit b2037b1

Please sign in to comment.