Fix bug where assert used != instead of ==

And update snapshot tests.
This commit is contained in:
Loïc Lecrenier 2022-10-19 17:29:51 +02:00 committed by Clément Renault
parent 23b01a58df
commit bdb17954d2
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 26 additions and 4 deletions

View file

@ -80,8 +80,8 @@ impl IndexScheduler {
})?;
}
assert!(
old_task.enqueued_at != task.enqueued_at,
assert_eq!(
old_task.enqueued_at, task.enqueued_at,
"Cannot update a task's enqueued_at time"
);
if old_task.started_at != task.started_at {