Skip to content

Commit 871a4b3

Browse files
test(vite): retry flaky tests
1 parent 9f8c95e commit 871a4b3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/ModelManager/ModelManager.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ describe('ModelManager', () => {
641641

642642
expect(lastFrame()).toContain('Downloading model');
643643

644-
// Press Escape to cancel download (this covers the key.escape branch in useInput)
644+
// Press Escape to cancel download
645645
stdin.write('\x1B\x1B');
646646
await time.tick(20);
647647

@@ -686,11 +686,11 @@ describe('ModelManager', () => {
686686

687687
props = getLastSelectProps();
688688
props.onChange?.('qwen2.5-coder:7b');
689-
await time.tick(10);
689+
await time.tick(20);
690690

691691
expect(lastFrame()).toContain('Downloading model');
692692

693-
// Press Ctrl+C to cancel download (this covers the key.ctrl && input === 'c' branch in useInput)
693+
// Press Ctrl+C to cancel download
694694
stdin.write('\x03');
695695
await time.tick(20);
696696

vite.config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default defineConfig({
3232
test: {
3333
globals: true,
3434
unstubGlobals: true,
35+
retry: 2,
3536
coverage: {
3637
include: ['src'],
3738
exclude: [

0 commit comments

Comments
 (0)