skip one flaky integration test (#1137)

This commit is contained in:
tanzhenxin
2025-12-03 19:40:14 +08:00
committed by GitHub
parent e426c15e9e
commit 2ca36d7508

View File

@@ -10,9 +10,7 @@ import { TestRig } from './test-helper.js';
describe('Ctrl+C exit', () => {
// (#9782) Temporarily disabling on windows because it is failing on main and every
// PR, which is potentially hiding other failures
it.skipIf(process.platform === 'win32')(
'should exit gracefully on second Ctrl+C',
async () => {
it.skip('should exit gracefully on second Ctrl+C', async () => {
const rig = new TestRig();
await rig.setup('should exit gracefully on second Ctrl+C');
@@ -24,10 +22,9 @@ describe('Ctrl+C exit', () => {
});
const isReady = await rig.waitForText('Type your message', 15000);
expect(
isReady,
'CLI did not start up in interactive mode correctly',
).toBe(true);
expect(isReady, 'CLI did not start up in interactive mode correctly').toBe(
true,
);
// Send first Ctrl+C
ptyProcess.write(String.fromCharCode(3));
@@ -75,6 +72,5 @@ describe('Ctrl+C exit', () => {
// eslint-disable-next-line no-control-regex
const cleanOutput = output.replace(/\x1b\[[0-9;]*m/g, '');
expect(cleanOutput).toContain(quittingMessage);
},
);
});
});