Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: make system resources test portable (#4453)

[._.]/ Adam Eivy70a1c61b99f8
diff --git a/.changelog/next/fixed-system-resources-windows-ci.md b/.changelog/next/fixed-system-resources-windows-ci.md
new file mode 100644
index 0000000000..a9cc1ab435
--- /dev/null
+++ b/.changelog/next/fixed-system-resources-windows-ci.md
@@ -0,0 +1 @@
+- System Resources strict-scan coverage now passes consistently on Windows runners.
diff --git a/server/services/systemResources.test.js b/server/services/systemResources.test.js
index 96b5d0e44e..0c023faa2d 100644
--- a/server/services/systemResources.test.js
+++ b/server/services/systemResources.test.js
@@ -194,7 +194,7 @@ describe('system resource reporting', () => {
it('surfaces strict size-scan failures instead of reporting a ready zero', async () => {
fileUtils.dirSize.mockImplementation(async (path) => {
- if (path === '/example/portos/node_modules') return null;
+ if (String(path).replaceAll('\\', '/') === '/example/portos/node_modules') return null;
return path.includes('Downloads') ? 900 : 100;
});