Skip to content

Commit

Permalink
1702 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Nov 1, 2023
1 parent 4f22ffb commit a348f52
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/unittests/libethereum/PrecompiledTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

#include <libdevcore/FileSystem.h>
#include <libdevcore/TransientDirectory.h>
#include <libdevcrypto/Hash.h>
#include <libethereum/Precompiled.h>
#include <libethereum/ChainParams.h>
Expand Down Expand Up @@ -1692,8 +1693,10 @@ BOOST_AUTO_TEST_CASE( getConfigVariableUint256 ) {

std::unique_ptr<dev::eth::Client> client;
dev::WithExisting withExisting = dev::WithExisting::Trust;
dev::TransientDirectory m_tmpDir;
setenv("DATA_DIR", m_tmpDir.path().c_str(), 1);
client.reset( new eth::Client( chainParams, ( int ) chainParams.networkID,
shared_ptr< GasPricer >(), nullptr, nullptr, getDataDir(),
shared_ptr< GasPricer >(), nullptr, nullptr, m_tmpDir.path(),
withExisting, dev::eth::TransactionQueue::Limits{ 1, 1, 1, 1 } ) );

std::shared_ptr< SkaleHost > skaleHost = std::make_shared< SkaleHost >( *client, nullptr, nullptr, "", false );
Expand Down Expand Up @@ -1733,8 +1736,10 @@ BOOST_AUTO_TEST_CASE( getConfigVariableAddress ) {

std::unique_ptr<dev::eth::Client> client;
dev::WithExisting withExisting = dev::WithExisting::Trust;
dev::TransientDirectory m_tmpDir;
setenv("DATA_DIR", m_tmpDir.path().c_str(), 1);
client.reset( new eth::Client( chainParams, ( int ) chainParams.networkID,
shared_ptr< GasPricer >(), nullptr, nullptr, getDataDir(),
shared_ptr< GasPricer >(), nullptr, nullptr, m_tmpDir.path(),
withExisting, dev::eth::TransactionQueue::Limits{ 1, 1, 1, 1 } ) );

std::shared_ptr< SkaleHost > skaleHost = std::make_shared< SkaleHost >( *client, nullptr, nullptr, "", false );
Expand Down

0 comments on commit a348f52

Please sign in to comment.