Alerting: Increase test timeout (#60445)

This commit is contained in:
Gilles De Mey
2022-12-16 12:41:38 +01:00
committed by GitHub
parent 174c61b949
commit 1da7bf7f60
3 changed files with 10 additions and 0 deletions

View File

@@ -38,6 +38,12 @@ jest.mock('app/features/query/components/QueryEditorRow', () => ({
jest.spyOn(config, 'getAllDataSources');
// these tests are rather slow because we have to wait for various API calls and mocks to be called
// and wait for the UI to be in particular states, drone seems to time out quite often so
// we're increasing the timeout here to remove the flakey-ness of this test
// ideally we'd move this to an e2e test but it's quite involved to set up the test environment
jest.setTimeout(60 * 1000);
const mocks = {
getAllDataSources: jest.mocked(config.getAllDataSources),
searchFolders: jest.mocked(searchFolders),

View File

@@ -48,6 +48,8 @@ jest.mock('app/features/query/components/QueryEditorRow', () => ({
jest.spyOn(config, 'getAllDataSources');
jest.setTimeout(60 * 1000);
const mocks = {
getAllDataSources: jest.mocked(config.getAllDataSources),
searchFolders: jest.mocked(searchFolders),

View File

@@ -41,6 +41,8 @@ jest.mock('app/features/query/components/QueryEditorRow', () => ({
jest.spyOn(config, 'getAllDataSources');
jest.setTimeout(60 * 1000);
const mocks = {
getAllDataSources: jest.mocked(config.getAllDataSources),
searchFolders: jest.mocked(searchFolders),