From 5b58096dcfbfaf1e39a037df0382ff119398a24e Mon Sep 17 00:00:00 2001 From: capyb2222 Date: Sat, 12 Sep 2026 22:03:57 -0700 Subject: [PATCH] fix(game): wait for queued srtools writes in tests --- tests/test_game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_game.cpp b/tests/test_game.cpp index f7c348d..a7aa7ae 100644 --- a/tests/test_game.cpp +++ b/tests/test_game.cpp @@ -10,6 +10,7 @@ #include #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) {