Skip to content

Commit 1763d2c

Browse files
authored
Increase timeout of tests which use window.withProgress (#3227)
1 parent 3d3363a commit 1763d2c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

extension/src/test/suite/experiments/workspace.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
QuickPickItemWithValue,
2828
QuickPickOptionsWithTitle
2929
} from '../../../vscode/quickPick'
30-
import { WEBVIEW_TEST_TIMEOUT } from '../timeouts'
30+
import { PROGRESS_TEST_TIMEOUT, WEBVIEW_TEST_TIMEOUT } from '../timeouts'
3131
import { Title } from '../../../vscode/title'
3232
import { join } from '../../util/path'
3333
import { AvailableCommands } from '../../../commands/internal'
@@ -716,7 +716,7 @@ suite('Workspace Experiments Test Suite', () => {
716716
expect(mockPush).to.be.calledWithExactly(dvcDemoPath)
717717
expect(mockGitPush).to.be.calledWithExactly(dvcDemoPath, mockBranch)
718718
})
719-
})
719+
}).timeout(PROGRESS_TEST_TIMEOUT)
720720

721721
describe('dvc.shareExperimentAsCommit', () => {
722722
it('should be able to share an experiment as a commit', async () => {
@@ -770,7 +770,7 @@ suite('Workspace Experiments Test Suite', () => {
770770
)
771771
expect(mockPush).to.be.calledWithExactly(dvcDemoPath)
772772
expect(mockGitPush).to.be.calledWithExactly(dvcDemoPath)
773-
})
773+
}).timeout(PROGRESS_TEST_TIMEOUT)
774774
})
775775

776776
describe('dvc.removeExperiments', () => {

extension/src/test/suite/setup/autoInstall.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as PythonExtension from '../../../extensions/python'
77
import * as Python from '../../../python'
88
import { autoInstallDvc } from '../../../setup/autoInstall'
99
import * as WorkspaceFolders from '../../../vscode/workspaceFolders'
10+
import { PROGRESS_TEST_TIMEOUT } from '../timeouts'
1011

1112
const { getDefaultPython } = Python
1213

@@ -86,6 +87,6 @@ suite('Auto Install Test Suite', () => {
8687
defaultPython,
8788
'dvclive'
8889
)
89-
})
90+
}).timeout(PROGRESS_TEST_TIMEOUT)
9091
})
9192
})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export const WEBVIEW_TEST_TIMEOUT = 16000
2+
export const PROGRESS_TEST_TIMEOUT = 8000

0 commit comments

Comments
 (0)