diff --git a/test/libethcore/keymanager.cpp b/test/libethcore/keymanager.cpp index 808f060fc..9013da4fd 100644 --- a/test/libethcore/keymanager.cpp +++ b/test/libethcore/keymanager.cpp @@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE(KeyManagerKeysFile) TransientDirectory tmpDir; km.setKeysFile(tmpDir.path()); 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"); BOOST_CHECK_NO_THROW(km.create(password)); BOOST_CHECK(km.exists());