remove explicit timeouts on receiver tests (#41032)

This commit is contained in:
Domas
2021-10-28 14:55:43 +03:00
committed by GitHub
parent 4c52ada7a9
commit 05f22e5c7d

View File

@@ -361,7 +361,7 @@ describe('Receivers', () => {
],
},
});
}, 10000);
});
it('Prometheus Alertmanager receiver cannot be edited', async () => {
mocks.api.fetchStatus.mockResolvedValue({
@@ -397,7 +397,7 @@ describe('Receivers', () => {
expect(mocks.api.fetchConfig).not.toHaveBeenCalled();
expect(mocks.api.fetchStatus).toHaveBeenCalledTimes(1);
}, 10000);
});
it('Loads config from status endpoint if there is no user config', async () => {
// loading an empty config with make it fetch config from status endpoint