mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 09:39:25 +00:00
fix(release): extend npm readback window (#154824)
This commit is contained in:
parent
e5b95831ba
commit
b4f6bb9bfa
2 changed files with 7 additions and 7 deletions
|
|
@ -384,8 +384,8 @@ export async function verifyExtendedStableRegistryReadback({
|
|||
expectedVersion,
|
||||
query,
|
||||
sleep,
|
||||
// Initial read plus five minutes of replication waits.
|
||||
attempts = 31,
|
||||
// Initial read plus fifteen minutes of replication waits.
|
||||
attempts = 91,
|
||||
delayMs = 10_000,
|
||||
}) {
|
||||
let exactVersion = "missing";
|
||||
|
|
|
|||
|
|
@ -660,7 +660,7 @@ describe("extended-stable selector capture", () => {
|
|||
});
|
||||
|
||||
describe("extended-stable registry readback", () => {
|
||||
it.each([2, 20])(
|
||||
it.each([2, 20, 60])(
|
||||
"accepts convergence on attempt %s within the propagation window",
|
||||
async (visibleAt) => {
|
||||
let attempt = 0;
|
||||
|
|
@ -685,14 +685,14 @@ describe("extended-stable registry readback", () => {
|
|||
},
|
||||
);
|
||||
|
||||
it("fails closed after the five-minute propagation window", async () => {
|
||||
it("fails closed after the fifteen-minute propagation window", async () => {
|
||||
const query = vi.fn(async () => ({ status: 1, stdout: "" }));
|
||||
const sleep = vi.fn(async (_delay: number) => {});
|
||||
await expect(
|
||||
verifyExtendedStableRegistryReadback({ expectedVersion: "2026.6.33", query, sleep }),
|
||||
).rejects.toThrow(/after 31 attempts/u);
|
||||
expect(query).toHaveBeenCalledTimes(62);
|
||||
expect(sleep).toHaveBeenCalledTimes(30);
|
||||
).rejects.toThrow(/after 91 attempts/u);
|
||||
expect(query).toHaveBeenCalledTimes(182);
|
||||
expect(sleep).toHaveBeenCalledTimes(90);
|
||||
expect(sleep.mock.calls.every(([delay]) => delay === 10_000)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue