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

test: leave the AuK fixture directory before Windows removes it

[._.]/ Adam Eivy50ac459ee7fc
diff --git a/scripts/auk_voice_worker.test.js b/scripts/auk_voice_worker.test.js
index 0942e5a5b4..0cb17be604 100644
--- a/scripts/auk_voice_worker.test.js
+++ b/scripts/auk_voice_worker.test.js
@@ -28,10 +28,15 @@ class Engine:
infer.AukMLX = Engine
infer.GenerateOptions = lambda **kwargs: kwargs
sys.modules["auk_mlx.infer"] = infer
+original_cwd = os.getcwd()
with tempfile.TemporaryDirectory() as root:
sys.argv = [sys.argv[1], root]
- os.chdir(root)
- worker.main()
+ try:
+ os.chdir(root)
+ worker.main()
+ finally:
+ # Windows cannot remove a directory while it is the process cwd.
+ os.chdir(original_cwd)
`;
describe.skipIf(!python)('AuK resident request protocol', () => {
@@ -41,7 +46,7 @@ describe.skipIf(!python)('AuK resident request protocol', () => {
encoding: 'utf8',
input: `{malformed private-fixture-token\n${JSON.stringify(request)}\n`,
});
- expect(result.status).toBe(0);
+ expect(result.status, result.stderr || result.error?.message).toBe(0);
expect(result.stderr).toBe('');
const responses = result.stdout.trim().split('\n').map(line => JSON.parse(line));
expect(responses).toHaveLength(2);