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) (#83096)

This PR fixes the calendar service method assertApplyToAllJobsSwitchCheckState by adding a missing await.
  • Loading branch information
pheyos committed Nov 11, 2020
1 parent e9c2ba6 commit dd143d2
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 dd143d2

Please sign in to comment.