fix(game): wait for queued srtools writes in tests

This commit is contained in:
capyb2222 committed 2026-09-12 22:03:57 -07:00
1 parent e4a3413bcc
commit 5b58096dcf
1 file changed
+3
+3
View File
@@ -10,6 +10,7 @@
#include <nlohmann/json.hpp>
#include "core/config.h"
#include "core/files.h"
#include "core/util.h"
#include "data/excel.h"
#include "data/scene_res.h"
@@ -945,6 +946,8 @@ void testSrToolsRoundTrip() {
}
});
// The write is queued; wait for it before reading.
files::flush();
std::string written = util::readFile(scratch, &ok);
check(ok, "the build was written back");
if (ok) {