错误处理

This commit is contained in:
2026-08-16 18:33:24 +08:00
parent 8612b5ff86
commit 389ff81d42
44 changed files with 536 additions and 261 deletions
+5 -1
View File
@@ -527,7 +527,11 @@ TEST(RenderiveWebGallery, PerformanceCaptureReturnsPlanFrameAnalysisAndStatistic
ASSERT_EQ(rendered.at("type"), "case_state");
}
const auto& capture = rendered.at("telemetry").at("performance_capture");
nlohmann::json capture;
ASSERT_TRUE(wait_for_condition([&] {
capture = observe_telemetry(session).at("performance_capture");
return !capture.at("controller").at("enabled").get<bool>();
}));
EXPECT_FALSE(capture.at("controller").at("enabled"));
ASSERT_EQ(capture.at("sessions").size(), 1U);
const auto& captured = capture.at("sessions").at(0);