PEP-248: тест ревьюера ждёт саму карточку «готово» — статус ставится раньше неё (гонка под нагрузкой CI)
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: success за 1376с
peppa-ci / ci (pull_request) Successful in 24m52s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
peppa-bot 2026-11-25 18:10:10 +00:00
parent d852aed15b
commit ad59289ae7

View File

@ -210,7 +210,9 @@ describe("reviewer details", () => {
assert.equal(done.error, "ревьюер ответил не по формату");
// No runner: the PM gets "ready for review" directly.
assert.equal((await t.ref()).task.status, "review");
await cardDetailsMatch((await readyQuestions(t))[0]!, /Ревьюер не отработал: ревьюер ответил не по формату/);
// The status goes before the card is sent: wait for the card itself.
const card = await waitFor("ready for review", async () => (await readyQuestions(t))[0] ?? null);
await cardDetailsMatch(card, /Ревьюер не отработал: ревьюер ответил не по формату/);
// Approved head → asking again goes straight to review with the note.
await core.updateTask(db, await t.ref(), { status: "in_progress" });