Fix tests (#953)

This commit is contained in:
David Markowitz 2023-01-11 22:36:03 -08:00 committed by GitHub
parent 7aacfc1bf0
commit 7bca43ffc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@
#include "dServer.h"
#include "EntityInfo.h"
#include "EntityManager.h"
#include "dConfig.h"
#include <gtest/gtest.h>
class dZoneManager;
@ -30,6 +31,7 @@ protected:
info.lot = 999;
Game::logger = new dLogger("./testing.log", true, true);
Game::server = new dServerMock();
Game::config = new dConfig("worldconfig.ini");
}
void TearDownDependencies() {
@ -39,6 +41,7 @@ protected:
Game::logger->Flush();
delete Game::logger;
}
if (Game::config) delete Game::config;
}
EntityInfo info;