Skip to content

Commit

Permalink
1767 Fixed test crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Feb 23, 2024
1 parent 6325d48 commit 026ce59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/unittests/libweb3jsonrpc/jsonrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,14 @@ class TestIpcClient : public jsonrpc::IClientConnector {
};

struct JsonRpcFixture : public TestOutputHelperFixture {

// chain params needs to be a field of JsonRPCFixture
// since references to it are passed to the server
ChainParams chainParams;

JsonRpcFixture( const std::string& _config = "", bool _owner = true, bool _deploymentControl = true, bool _generation2 = false, bool _mtmEnabled = false ) {
dev::p2p::NetworkPreferences nprefs;
ChainParams chainParams;


if ( _config != "" ) {
if ( !_generation2 ) {
Expand Down

0 comments on commit 026ce59

Please sign in to comment.