mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Attempt to fix flaky burn rate test (#212039)
Fixes #211439 ## Summary @simianhacker pointed out that the `alignEventsToInterval` setting aligns the data generation so that we have the exact number of documents in each bucket; I noticed this setting is missing for the burn rate rule test. ### How to run the test ``` // Server node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts // Test node scripts/functional_test_runner --config=x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep="Burn rate rule" ``` Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
This commit is contained in:
parent
3b1c352df9
commit
cb6e0be122
1 changed files with 6 additions and 1 deletions
|
@ -53,7 +53,12 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
|
|||
],
|
||||
},
|
||||
],
|
||||
indexing: { dataset: 'fake_hosts' as Dataset, eventsPerCycle: 1, interval: 10000 },
|
||||
indexing: {
|
||||
dataset: 'fake_hosts' as Dataset,
|
||||
eventsPerCycle: 1,
|
||||
interval: 10000,
|
||||
alignEventsToInterval: true,
|
||||
},
|
||||
};
|
||||
dataForgeIndices = await generate({ client: esClient, config: dataForgeConfig, logger });
|
||||
await alertingApi.waitForDocumentInIndex({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue