mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Fix tests (#953)
This commit is contained in:
parent
7aacfc1bf0
commit
7bca43ffc1
@ -6,6 +6,7 @@
|
|||||||
#include "dServer.h"
|
#include "dServer.h"
|
||||||
#include "EntityInfo.h"
|
#include "EntityInfo.h"
|
||||||
#include "EntityManager.h"
|
#include "EntityManager.h"
|
||||||
|
#include "dConfig.h"
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
class dZoneManager;
|
class dZoneManager;
|
||||||
@ -30,6 +31,7 @@ protected:
|
|||||||
info.lot = 999;
|
info.lot = 999;
|
||||||
Game::logger = new dLogger("./testing.log", true, true);
|
Game::logger = new dLogger("./testing.log", true, true);
|
||||||
Game::server = new dServerMock();
|
Game::server = new dServerMock();
|
||||||
|
Game::config = new dConfig("worldconfig.ini");
|
||||||
}
|
}
|
||||||
|
|
||||||
void TearDownDependencies() {
|
void TearDownDependencies() {
|
||||||
@ -39,6 +41,7 @@ protected:
|
|||||||
Game::logger->Flush();
|
Game::logger->Flush();
|
||||||
delete Game::logger;
|
delete Game::logger;
|
||||||
}
|
}
|
||||||
|
if (Game::config) delete Game::config;
|
||||||
}
|
}
|
||||||
|
|
||||||
EntityInfo info;
|
EntityInfo info;
|
||||||
|
Loading…
Reference in New Issue
Block a user