mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-19 10:15:27 +00:00
test: each game test starts without the CDClient the one before it opened
Tests that open an in-memory CDClient with only their tables left it connected, so later tests that make their own tables when none is connected failed (DestroyableTest, MovementBlockerScenarioTest, QuickBuildCompleteTests in a full run). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "Game.h"
|
||||
#include "Logger.h"
|
||||
#include "dServer.h"
|
||||
#include "CDClientDatabase.h"
|
||||
#include "CDClientManager.h"
|
||||
#include "EntityInfo.h"
|
||||
#include "EntityManager.h"
|
||||
@@ -85,6 +86,8 @@ protected:
|
||||
}
|
||||
delete Game::config;
|
||||
Game::config = nullptr;
|
||||
// A CDClient a test opened (often an in-memory one with only the tables it needs) isn't the next test's
|
||||
CDClientDatabase::Disconnect();
|
||||
}
|
||||
|
||||
EntityInfo info{};
|
||||
|
||||
Reference in New Issue
Block a user