fix(tests): fix integration tests, `test_resume_priority_ordering` - fix ordering
This commit is contained in:
parent
e7f773d1ea
commit
0bf384bbb1
|
|
@ -392,11 +392,11 @@ fn test_resume_priority_ordering() {
|
||||||
// Local folder should have highest priority (lowest number)
|
// Local folder should have highest priority (lowest number)
|
||||||
assert_eq!(sources[0].source_type, SourceType::LocalFolder);
|
assert_eq!(sources[0].source_type, SourceType::LocalFolder);
|
||||||
|
|
||||||
// WebDAV should be next
|
// S3 should be next (interrupted more recently than WebDAV)
|
||||||
assert_eq!(sources[1].source_type, SourceType::WebDAV);
|
assert_eq!(sources[1].source_type, SourceType::S3);
|
||||||
|
|
||||||
// S3 should have lowest priority
|
// WebDAV should have lowest priority (interrupted longest ago)
|
||||||
assert_eq!(sources[2].source_type, SourceType::S3);
|
assert_eq!(sources[2].source_type, SourceType::WebDAV);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create_interrupted_source_with_time(user_id: Uuid, source_type: SourceType, minutes_ago: i64) -> Source {
|
fn create_interrupted_source_with_time(user_id: Uuid, source_type: SourceType, minutes_ago: i64) -> Source {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue