From dd143d22162e4141b79cad5d9cc1852708c9a7fb Mon Sep 17 00:00:00 2001 From: Robert Oskamp Date: Wed, 11 Nov 2020 07:32:14 +0100 Subject: [PATCH] [ML] Functional tests - fix calendar "apply to all jobs" service method (#83071) (#83096) This PR fixes the calendar service method assertApplyToAllJobsSwitchCheckState by adding a missing await. --- x-pack/test/functional/services/ml/settings_calendar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/functional/services/ml/settings_calendar.ts b/x-pack/test/functional/services/ml/settings_calendar.ts index 3ab062dc2e6ee4..4c98124a196167 100644 --- a/x-pack/test/functional/services/ml/settings_calendar.ts +++ b/x-pack/test/functional/services/ml/settings_calendar.ts @@ -267,7 +267,7 @@ export function MachineLearningSettingsCalendarProvider( }, async assertApplyToAllJobsSwitchCheckState(expectedCheckState: boolean) { - const actualCheckState = this.getApplyToAllJobsSwitchCheckedState(); + const actualCheckState = await this.getApplyToAllJobsSwitchCheckedState(); expect(actualCheckState).to.eql( expectedCheckState, `Apply to all jobs switch check state should be '${expectedCheckState}' (got '${actualCheckState}')`