Skip to content

Commit

Permalink
[ML] Functional tests - fix calendar "apply to all jobs" service meth…
Browse files Browse the repository at this point in the history
…od (#83071)

This PR fixes the calendar service method assertApplyToAllJobsSwitchCheckState by adding a missing await.
  • Loading branch information
pheyos authored Nov 10, 2020
1 parent f8d74e2 commit 6f8f8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/test/functional/services/ml/settings_calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}')`
Expand Down

0 comments on commit 6f8f8eb

Please sign in to comment.