1 parent d63454a commit 3fbd8d7Copy full SHA for 3fbd8d7
1 file changed
dstack/kms/auth-eth-bun/index.test.ts
@@ -323,8 +323,9 @@ describe('API Compatibility Tests', () => {
323
expect(data.isAllowed).toBe(false);
324
expect(data.reason).toBe('authorization backend unavailable');
325
326
- // Verify that console.error was called for real errors
327
- expect(consoleSpy).toHaveBeenCalledWith('error in KMS boot auth:', expect.any(Error));
+ // Diagnostics identify the failing boundary without retaining backend details.
+ expect(consoleSpy).toHaveBeenCalledWith('KMS authorization backend failed');
328
+ expect(JSON.stringify(consoleSpy.mock.calls)).not.toContain('real error');
329
330
consoleSpy.mockRestore();
331
});
0 commit comments