Use memory backend for unit tests

This commit is contained in:
Vinnie Falco
2013-07-23 15:00:56 -07:00
parent a3264a291a
commit 373c328dfa
2 changed files with 70 additions and 61 deletions

View File

@@ -51,8 +51,17 @@ void startServer ()
getApp().run (); // Blocks till we get a stop RPC.
}
void setupConfigForUnitTests (Config* config)
{
config->nodeDatabase = parseDelimitedKeyValueString ("type=memory");
config->ephemeralNodeDatabase = StringPairArray ();
config->importNodeDatabase = StringPairArray ();
}
bool init_unit_test ()
{
setupConfigForUnitTests (&theConfig);
getApp ();
return true;