Testing: explicitly initialize variable

pull/1274/head
Stephen Shelton 4 years ago
parent 7167b4ad02
commit ac225eb65e
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -41,8 +41,7 @@ namespace llarp
/// NOTE: blocks on I/O
///
/// @param config should be a prepared config object
/// @param genIfAbsent determines whether or not we will create files if
/// they
/// @param genIfAbsent determines whether or not we will create files if they
/// do not exist.
/// @return true on success, false otherwise
bool

@ -148,6 +148,7 @@ TEST_F(KeyManagerTest, TestInitialize_DetectsBadRcFile)
{
llarp::Config conf;
conf.LoadDefault(false, {});
conf.lokid.whitelistRouters = false;
std::fstream f;
f.open(rcFile, std::ios::out);

Loading…
Cancel
Save