-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Hello! Would like to let you know about a hostname missmatching happening on my machine because of what I guess is an irregular hostname.
Here is the test summary.
Summary of all failing tests
FAIL tests/integration/real-claude-integration.test.ts
● Real Claude CLI Integration › Claude CLI with API Error › should handle real Claude CLI with API error in fake home and test resume functionality
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
166 | // 3. Verify we received API error in streaming
167 | expect(messages.length).toBeGreaterThan(0);
> 168 | expect(hasApiError).toBe(true);
| ^
169 |
170 | // 4. Test the list and get conversation APIs (they work with existing conversations)
171 | const listResponse = await fetch(`${baseUrl}/api/conversations`);
at Object.<anonymous> (tests/integration/real-claude-integration.test.ts:168:27)
FAIL tests/integration/config-integration.test.ts
● Configuration System Basic Integration › Machine ID Generation › should generate consistent machine ID format
expect(received).toMatch(expected)
Expected pattern: /^[a-z0-9\-]+\-[a-f0-9]{8}$/
Received string: "dedens-kgpwgmw6ft.local-bd6fd5ce"
107 | // Should match format: {hostname}-{8char_hash}
108 | const pattern = /^[a-z0-9\-]+\-[a-f0-9]{8}$/;
> 109 | expect(machineId).toMatch(pattern);
| ^
110 |
111 | // Should start with lowercase hostname
112 | const hostname = os.hostname().toLowerCase();
at Object.<anonymous> (tests/integration/config-integration.test.ts:109:25)
● Configuration System Basic Integration › Default Configuration Values › should create config with correct default values
expect(received).toMatch(expected)
Expected pattern: /^[a-z0-9\-]+\-[a-f0-9]{8}$/
Received string: "dedens-kgpwgmw6ft.local-bd6fd5ce"
204 | expect(config.server.port).toBe(3001);
205 | expect(config.machine_id).toBeDefined();
> 206 | expect(config.machine_id).toMatch(/^[a-z0-9\-]+\-[a-f0-9]{8}$/);
| ^
207 | expect(config.authToken).toBeDefined();
208 | expect(config.authToken).toMatch(/^[a-f0-9]{32}$/);
209 | });
at Object.<anonymous> (tests/integration/config-integration.test.ts:206:33)
● Configuration System Basic Integration › Default Configuration Values › should generate machine ID with correct hostname prefix
expect(received).toMatch(expected)
Expected pattern: /^dedenskgpwgmw6ftlocal/
Received string: "dedens-kgpwgmw6ft.local-bd6fd5ce"
218 | // Machine ID should start with hostname (with invalid chars removed)
219 | const cleanHostname = hostname.replace(/[^a-z0-9]/gi, '').toLowerCase();
> 220 | expect(config.machine_id).toMatch(new RegExp(`^${cleanHostname}`));
| ^
221 | });
222 | });
223 | });
at Object.<anonymous> (tests/integration/config-integration.test.ts:220:33)
Test Suites: 2 failed, 38 passed, 40 total
Tests: 4 failed, 569 passed, 573 total
Snapshots: 0 total
Time: 25.566 s