test(file-transfer): remove stale tar fixture awaits · openclaw/openclaw@33b8168
vincentkoc
·
2026-05-30
·
via Recent Commits to openclaw:main
File tree
extensions/file-transfer/src/shared
| Original file line number | Diff line number | Diff line change |
|---|
@@ -586,7 +586,7 @@ describe("file-transfer node invoke policy", () => {
|
586 | 586 | "continues dir.fetch after preflight without forwarding caller preflightOnly", |
587 | 587 | async () => { |
588 | 588 | const policy = createFileTransferNodeInvokePolicy(); |
589 | | -const tarBase64 = await tarEntries({ |
| 589 | +const tarBase64 = tarEntries({ |
590 | 590 | "a.txt": "a", |
591 | 591 | "sub/b.txt": "b", |
592 | 592 | }); |
@@ -634,7 +634,7 @@ describe("file-transfer node invoke policy", () => {
|
634 | 634 | "checks final dir.fetch archive entries before returning the archive", |
635 | 635 | async () => { |
636 | 636 | const policy = createFileTransferNodeInvokePolicy(); |
637 | | -const tarBase64 = await tarEntries({ |
| 637 | +const tarBase64 = tarEntries({ |
638 | 638 | "ok.txt": "ok", |
639 | 639 | ".ssh/id_rsa": "secret", |
640 | 640 | }); |
@@ -685,7 +685,7 @@ describe("file-transfer node invoke policy", () => {
|
685 | 685 | |
686 | 686 | testUnlessWindows("rejects oversized final dir.fetch archive entry lists", async () => { |
687 | 687 | const policy = createFileTransferNodeInvokePolicy(); |
688 | | -const tarBase64 = await tarEntries( |
| 688 | +const tarBase64 = tarEntries( |
689 | 689 | Object.fromEntries(Array.from({ length: 5001 }, (_, index) => [`file-${index}.txt`, "x"])), |
690 | 690 | ); |
691 | 691 | const { ctx, invokeNode } = createCtx({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。