Browse Source

Merge pull request #2739 from chriseth/fixKeyManagerTest

Fix key manager test.
cl-refactor
Gav Wood 10 years ago
parent
commit
b756a47118
  1. 2
      test/libethcore/keymanager.cpp

2
test/libethcore/keymanager.cpp

@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE(KeyManagerKeysFile)
TransientDirectory tmpDir; TransientDirectory tmpDir;
km.setKeysFile(tmpDir.path()); km.setKeysFile(tmpDir.path());
BOOST_CHECK(!km.exists()); BOOST_CHECK(!km.exists());
BOOST_CHECK_THROW(km.create(password), FileError); BOOST_CHECK_THROW(km.create(password), boost::filesystem::filesystem_error);
km.setKeysFile(tmpDir.path() + "/notExistingDir/keysFile.json"); km.setKeysFile(tmpDir.path() + "/notExistingDir/keysFile.json");
BOOST_CHECK_NO_THROW(km.create(password)); BOOST_CHECK_NO_THROW(km.create(password));
BOOST_CHECK(km.exists()); BOOST_CHECK(km.exists());

Loading…
Cancel
Save