Fix some flaky tests

This commit is contained in:
Mike Cote 2024-10-22 14:17:52 -04:00
parent 3d667a0d13
commit d28c8c56f6
2 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
return await createAlwaysFiringRule({
name: `test-rule-${testRunUuid}`,
schedule: {
interval: '1s',
interval: '3s',
},
actions: connectors.map((connector) => ({
id: connector.id,
@ -615,7 +615,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const rule = await createAlwaysFiringRule({
name: `test-rule-${testRunUuid}`,
schedule: {
interval: '1s',
interval: '3s',
},
notify_when: RuleNotifyWhen.THROTTLE,
throttle: '2d',

View file

@ -125,7 +125,7 @@ export default function ({ getService }: FtrProviderContext) {
const monitoredAggregatedStatsRefreshRate = 5000;
describe('health', () => {
afterEach(async () => {
after(async () => {
// clean up after each test
return await request.delete('/api/sample_tasks').set('kbn-xsrf', 'xxx').expect(200);
});