summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/database.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/database.cpp b/tests/database.cpp
index c248568..c0f4e9f 100644
--- a/tests/database.cpp
+++ b/tests/database.cpp
@@ -2,15 +2,12 @@
#include <database/database.hpp>
-#include <unistd.h>
#include <config/config.hpp>
TEST_CASE("Database")
{
#ifdef USE_DATABASE
- // Remove any potential existing db
- ::unlink("./test.db");
- Config::set("db_name", "test.db");
+ Config::set("db_name", ":memory:");
Database::set_verbose(false);
auto o = Database::get_irc_server_options("zouzou@example.com", "irc.example.com");
o.update();