[ML] Always sync before serverless trained model tests (#169658)

Ensuring saved objects are synced before running the tests for the
trained models. This should fix the occasional test failure where the
build in `lang_ident_model_1` is missing from the list due to a sync
being needed.
 
Flaky test runner, all have passed.
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3703
This commit is contained in:
James Gowdy 2023-10-25 11:45:28 +01:00 committed by GitHub
parent 9505fa9754
commit aff871a84a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -13,6 +13,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
describe('Trained models list', () => {
before(async () => {
await PageObjects.svlCommonPage.login();
await ml.api.syncSavedObjects();
});
after(async () => {

View file

@ -14,6 +14,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
describe('Trained models list', () => {
before(async () => {
await PageObjects.svlCommonPage.login();
await ml.api.syncSavedObjects();
});
after(async () => {