Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcger committed Aug 29, 2023
1 parent 784967d commit 93925c5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,12 @@ export default function createSnoozeRuleTests({ getService }: FtrProviderContext
.expect(200);
objectRemover.add(Spaces.space1.id, createdRule.id, 'rule', 'alerting');

const dateStart = new Date().toISOString();
const response = await alertUtils.getSnoozeRequest(createdRule.id).send({
snooze_schedule: {
...SNOOZE_SCHEDULE,
// updating the dtstart to the current time because otherwise the snooze might be over already
dtstart: dateStart,
duration: 3000,
},
});
Expand All @@ -371,8 +374,7 @@ export default function createSnoozeRuleTests({ getService }: FtrProviderContext
expect(updatedAlert.snooze_schedule).to.eql([
{
...SNOOZE_SCHEDULE,
// updating the dtstart to the current time because otherwise the snooze might be over already
dtstart: new Date().toISOString(),
dtstart: dateStart,
duration: 3000,
},
]);
Expand Down

0 comments on commit 93925c5

Please sign in to comment.