Skip to content

Commit a177f67

Browse files
kevinwang5658github-actions[bot]
authored andcommitted
fix: Linux test fixes for openclaw resource
1 parent 936e01b commit a177f67

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/resources/openclaw/openclaw.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export class OpenClawResource extends Resource<OpenClawConfig> {
120120
const $ = getPty();
121121

122122
await $.spawnSafe('openclaw gateway stop', { interactive: true });
123+
await $.spawnSafe('npm uninstall -g openclaw', { interactive: true });
123124
await $.spawnSafe('rm -f ~/.local/bin/openclaw', { interactive: true });
124125

125126
await fs.rm(path.join(os.homedir(), '.openclaw'), { recursive: true, force: true });

‎test/openclaw/openclaw.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ describe('openclaw resource integration tests', async () => {
6868
afterAll(async () => {
6969
// Best-effort cleanup in case tests left openclaw installed
7070
await testSpawn('openclaw gateway stop');
71+
await testSpawn('npm uninstall -g openclaw');
7172
await testSpawn('rm -f ~/.local/bin/openclaw');
7273
await testSpawn('rm -rf ~/.openclaw');
7374
}, 60_000);

0 commit comments

Comments
 (0)