fix(tests): serialize shared channel audit state cases

This commit is contained in:
Gustavo Madeira Santana
2026-04-01 19:12:05 -04:00
parent a204f790ce
commit 91a7505af6

View File

@@ -371,11 +371,9 @@ describe("security audit", () => {
cases: readonly T[],
run: (testCase: T, tmp: string) => Promise<void>,
) => {
await Promise.all(
cases.map(async (testCase) => {
await withChannelSecurityStateDir(async (tmp) => run(testCase, tmp));
}),
);
for (const testCase of cases) {
await withChannelSecurityStateDir(async (tmp) => run(testCase, tmp));
}
};
const runSharedExtensionsAudit = async (config: OpenClawConfig) => {