mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
fix(test): preserve repeat counts in recovery stress runs (#148810)
This commit is contained in:
parent
5f69fc76c8
commit
bc7e0f115e
3 changed files with 7 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ const VITEST_OPTIONS_WITH_VALUE = new Set([
|
|||
"--project",
|
||||
"--reporter",
|
||||
"--reporters",
|
||||
"--repeats",
|
||||
"--retry",
|
||||
"--root",
|
||||
"-r",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { randomUUID } from "node:crypto";
|
||||
import { createAssistantMessageEventStream, type Message } from "openclaw/plugin-sdk/llm";
|
||||
import { Type } from "typebox";
|
||||
import { afterEach, beforeEach, describe, expect, it, onTestFinished, vi } from "vitest";
|
||||
|
|
@ -319,7 +320,7 @@ describe("runEmbeddedAttemptExecutionPhase", () => {
|
|||
model: testModel,
|
||||
modelId: testModel.id,
|
||||
provider: testModel.provider,
|
||||
sessionId: `async-fragment-${stopReason}-${cacheRead}-${completion}`,
|
||||
sessionId: randomUUID(),
|
||||
});
|
||||
Object.assign(runtime, {
|
||||
anthropicPayloadLogger: undefined,
|
||||
|
|
|
|||
|
|
@ -753,6 +753,10 @@ registerHooks({resolve(specifier, context, nextResolve) {
|
|||
["run", "test/scripts/run-vitest.test.ts", "-t", "src"],
|
||||
["test/scripts/run-vitest.test.ts", "--", "-t", "src"],
|
||||
],
|
||||
[
|
||||
["run", "test/scripts/run-vitest.test.ts", "--repeats", "19"],
|
||||
["test/scripts/run-vitest.test.ts", "--", "--repeats", "19"],
|
||||
],
|
||||
])("keeps option value %j out of project target classification", (argv, expected) => {
|
||||
expect(resolveTestProjectsDelegationArgs(argv)).toEqual(expected);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue