Skip to content

Commit d74c699

Browse files
fix(openclaw): align heartbeat runtime test defaults
1 parent 09cee76 commit d74c699

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/artifactLocalFileProtocol.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('artifact local file protocol', () => {
4343

4444
test('resolves localfile URLs back to absolute file paths', () => {
4545
const filePath = createTempFile('generated video.mp4', '0123456789');
46-
expect(getLocalFileProtocolPath(toLocalFileUrl(filePath))).toBe(filePath);
46+
expect(path.normalize(getLocalFileProtocolPath(toLocalFileUrl(filePath)))).toBe(path.normalize(filePath));
4747
});
4848

4949
test('recovers paths that were previously prefixed with cwd and MEDIA marker', () => {

src/main/libs/openclawAgentsMdIdentityMigration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe('cleanupLegacyAgentsMdIdentityBlockInWorkspace', () => {
195195
}
196196
expect(fs.readFileSync(agentsMdPath, 'utf8')).not.toContain('## Identity(必须遵守)');
197197
expect(fs.readFileSync(result.backupPath, 'utf8')).toBe(original);
198-
expect(result.backupPath).toContain('.lobsterai/migrations');
198+
expect(result.backupPath).toContain(path.join('.lobsterai', 'migrations'));
199199
});
200200

201201
test('skips when AGENTS.md does not exist', () => {

src/main/libs/openclawConfigSync.runtime.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ describe('OpenClawConfigSync runtime config output', () => {
243243
target: 'none',
244244
lightContext: true,
245245
isolatedSession: true,
246+
skipWhenBusy: true,
246247
});
247248
});
248249

@@ -272,6 +273,7 @@ describe('OpenClawConfigSync runtime config output', () => {
272273
target: 'none',
273274
lightContext: true,
274275
isolatedSession: true,
276+
skipWhenBusy: true,
275277
});
276278
});
277279

src/main/libs/openclawConfigSync.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,6 +1861,7 @@ loopDetection: MANAGED_TOOL_LOOP_DETECTION,
18611861
target: 'none',
18621862
lightContext: true,
18631863
isolatedSession: true,
1864+
skipWhenBusy: true,
18641865
},
18651866
...(Object.keys(agentModelDefaults).length > 0
18661867
? { models: agentModelDefaults }

0 commit comments

Comments
 (0)