From fb017f87a765e280b829b6bd7a3d27301ca8a685 Mon Sep 17 00:00:00 2001 From: Patrick Schurig Date: Sat, 17 Oct 2026 13:45:44 +0200 Subject: [PATCH] =?UTF-8?q?test(int=C3=A9gration):=20L2=20=C3=A9prouv?= =?UTF-8?q?=C3=A9=20sous=20un=20plan=20d'optimiseur=20qui=20commande=20tou?= =?UTF-8?q?t=20=C3=A0=20fond=20(brief=204=20T7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La contre-épreuve E4 (L2 ne suspend plus la planification) ne mordait que par la ligne de trace : le plan en cache valait déjà 0 avant L2. Le test ramène l'optimiseur à 2000 / 3000 W et PAC forcée juste avant la coupure du compteur ; E4 mord désormais sur les consignes de repli. Co-Authored-By: Claude Opus 5.5 --- tests/auto/refoptimizer/testrefoptimizer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/auto/refoptimizer/testrefoptimizer.cpp b/tests/auto/refoptimizer/testrefoptimizer.cpp index b82e914..e3da80e 100644 --- a/tests/auto/refoptimizer/testrefoptimizer.cpp +++ b/tests/auto/refoptimizer/testrefoptimizer.cpp @@ -859,8 +859,13 @@ void TestRefOptimizer::testSafetyWinsOverTheOptimizer() QVERIFY2(delestee, qUtf8Printable(QJsonDocument::fromVariant(ligneL4.value("executed")).toJson())); // L2 — compteur muet > 90 s : plus aucune stratégie, consignes de repli, même avec un - // optimiseur vivant et un plan en cache. + // optimiseur vivant et un plan en cache qui commande TOUT à fond. m_compteur->setStateValue("currentPhaseA", 0); + m_surplusW = 9000; + for (int k = 0; k < 3; ++k) + cycle(t0.addSecs(120 + 30 * k)); + QVERIFY(m_arb->socketScheduler()->optimiseurAuDernierCycle()); + QCOMPARE(cleEtat(etatApplique()), cleEtat(avant)); m_arb->evaluateMeterFreshness(t0.addSecs(300)); QVERIFY(m_arb->degradedMode()); m_arb->simulationCallUpdate(t0.addSecs(330));