1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix failing tests - regression from some time ago?

This commit is contained in:
Ivan Savenko
2025-08-04 12:24:20 +03:00
parent 1d2d189e4a
commit 5e7724bf9a
3 changed files with 7 additions and 6 deletions

View File

@@ -18,6 +18,7 @@
#include "../lib/int3.h"
#include "../lib/CRandomGenerator.h"
#include "../lib/GameLibrary.h"
#include "../lib/callback/EditorCallback.h"
TEST(MapManager, DrawTerrain_Type)
@@ -114,8 +115,9 @@ TEST(MapManager, DrawTerrain_View)
const ResourcePath testMap("test/TerrainViewTest", EResType::MAP);
// Load maps and json config
CMapService mapService;
const auto originalMap = mapService.loadMap(testMap, nullptr);
auto map = mapService.loadMap(testMap, nullptr);
EditorCallback cb(nullptr);
const auto originalMap = mapService.loadMap(testMap, &cb);
auto map = mapService.loadMap(testMap, &cb);
// Validate edit manager
auto editManager = map->getEditManager();