Repository navigation
Commit 914c87c
committed
test(harness): wait for the cancelled task's worker before cleanup
cancellingRunningBackgroundSpawnStopsTheChild returned as soon as the
child was cancelled. The repository worker then still wrote the
CANCELLED record into the temporary workspace, so JUnit could delete
the directory while the record was being written and fail with
DirectoryNotEmptyException, as seen on the Ubuntu CI runner.
Shut the executor down and wait for it after the child stops, as the
repository-level cancellation tests already do.1 parent a3730bc commit 914c87c
1 file changed
Lines changed: 4 additions & 0 deletions
File tree
- agentscope-harness/src/test/java/io/agentscope/harness/agent/tool
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
679 | 683 | | |
680 | 684 | | |
681 | 685 | | |
| |||
0 commit comments