PEP-233: тест неудачных релизов — запас времени на шесть сообщений агенту по очереди
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b55f1494aa
commit
0ccd38d284
@ -131,7 +131,9 @@ describe("Проверка здоровья и откат", () => {
|
||||
assert.equal((await mine()).length, 2);
|
||||
assert.match((await mine())[1]!, /остановлен/);
|
||||
assert.match((await mine())[1]!, /больше не пробует/);
|
||||
await s.tp.waitLog("the agent is told to stop", (e) => JSON.stringify(e).includes("это предел"));
|
||||
// Six messages reach the busy agent one turn at a time (~4 s each with the mock): the sixth
|
||||
// comes ~25 s in, so the default 25 s wait is a coin toss on a loaded CI runner.
|
||||
await s.tp.waitLog("the agent is told to stop", (e) => JSON.stringify(e).includes("это предел"), 90_000);
|
||||
assert.equal((await core.getPlatformDelay(db, s.scope, "deploy"))!.exhausted, true);
|
||||
await s.rel("00000007", "rolled_back");
|
||||
assert.equal((await mine()).length, 2, "after the limit nothing new");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user