diff options
author | chriseth <c@ethdev.com> | 2015-06-17 22:35:28 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-18 17:38:14 +0800 |
commit | 8603d0c73424f37881f65d2ed333a73f760e92d0 (patch) | |
tree | 2b3a552ccca7e570136ff35daa1ee2f73fe91929 /TestUtils.cpp | |
parent | 5185b75adddcbbabdf162bc1734121a146224558 (diff) | |
download | dexon-solidity-8603d0c73424f37881f65d2ed333a73f760e92d0.tar.gz dexon-solidity-8603d0c73424f37881f65d2ed333a73f760e92d0.tar.zst dexon-solidity-8603d0c73424f37881f65d2ed333a73f760e92d0.zip |
Fix to correctly write nonce during tests.
Diffstat (limited to 'TestUtils.cpp')
-rw-r--r-- | TestUtils.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/TestUtils.cpp b/TestUtils.cpp index ff5169d5..bd603a61 100644 --- a/TestUtils.cpp +++ b/TestUtils.cpp @@ -22,6 +22,7 @@ #include <thread> #include <boost/test/unit_test.hpp> #include <boost/filesystem.hpp> +#include <libdevcrypto/Common.h> #include <libtestutils/Common.h> #include <libtestutils/BlockChainLoader.h> #include <libtestutils/FixedClient.h> @@ -116,3 +117,13 @@ void ParallelClientBaseFixture::enumerateClients(std::function<void(Json::Value }); }); } + +MoveNonceToTempDir::MoveNonceToTempDir() +{ + crypto::Nonce::setSeedFilePath(m_dir.path() + "/seed"); +} + +MoveNonceToTempDir::~MoveNonceToTempDir() +{ + crypto::Nonce::reset(); +} |