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

fix(sanitizer): coredump in meta_service_test.check_status_failure #869

Merged
merged 3 commits into from
Jul 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/meta/test/meta_service_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "meta/meta_service.h"

#include <dsn/utility/fail_point.h>
#include <runtime/rpc/network.sim.h>

namespace dsn {
namespace replication {
Expand Down Expand Up @@ -70,6 +71,9 @@ class meta_service_test : public meta_test_base
::dsn::marshall(fake_request, request);

dsn::message_ex *recvd_request = fake_request->copy(true, true);
std::unique_ptr<tools::sim_network_provider> sim_net(
new tools::sim_network_provider(nullptr, nullptr));
recvd_request->io_session = sim_net->create_client_session(rpc_address());
return app_env_rpc::auto_reply(recvd_request);
}
};
Expand Down