Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
neverchanje committed Aug 4, 2020
1 parent 4fe4967 commit 6662a30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/replica/duplication/test/duplication_test_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class duplication_test_base : public replica_test_base
return log_file_map;
}

mutation_ptr create_test_mutation(int64_t decree, string_view data) override
mutation_ptr create_test_mutation(int64_t decree, const std::string &data) override
{
auto mut = replica_test_base::create_test_mutation(decree, data);
mut->data.updates[0].code = RPC_DUPLICATION_IDEMPOTENT_WRITE; // must be idempotent write
Expand Down
2 changes: 1 addition & 1 deletion src/replica/test/mutation_log_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class mutation_log_test : public replica_test_base

void TearDown() override { utils::filesystem::remove_path(_log_dir); }

mutation_ptr create_test_mutation(decree d, string_view data) override
mutation_ptr create_test_mutation(decree d, const std::string &data) override
{
mutation_ptr mu(new mutation());
mu->data.header.ballot = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/replica/test/replica_test_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct replica_test_base : replica_stub_test_base

replica_test_base() { _replica = create_mock_replica(stub.get(), 1, 1, _log_dir.c_str()); }

virtual mutation_ptr create_test_mutation(int64_t decree, string_view data)
virtual mutation_ptr create_test_mutation(int64_t decree, const std::string &data)
{
mutation_ptr mu(new mutation());
mu->data.header.ballot = 1;
Expand Down

0 comments on commit 6662a30

Please sign in to comment.