[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.
This commit is contained in:
Robert Oskamp 2020-11-10 20:40:06 +01:00 committed by GitHub
parent f8d74e240b
commit 6f8f8ebdf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}')`