From 6f8f8ebdf9104042dbc32577b0697ae0e9eeb5b5 Mon Sep 17 00:00:00 2001 From: Robert Oskamp Date: Tue, 10 Nov 2020 20:40:06 +0100 Subject: [PATCH] [ML] Functional tests - fix calendar "apply to all jobs" service method (#83071) 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 3ab062dc2e6ee..4c98124a19616 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}')`