From 6b760a8b9d8ef2edffa758d1acfd29e28fb646af Mon Sep 17 00:00:00 2001 From: perf3ct Date: Wed, 18 Jun 2025 22:34:21 +0000 Subject: [PATCH] fix(tests): fix integration tests, `test_resume_priority_ordering` - fix ordering --- tests/auto_resume_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/auto_resume_tests.rs b/tests/auto_resume_tests.rs index e0a1cba..b142f08 100644 --- a/tests/auto_resume_tests.rs +++ b/tests/auto_resume_tests.rs @@ -392,11 +392,11 @@ fn test_resume_priority_ordering() { // Local folder should have highest priority (lowest number) assert_eq!(sources[0].source_type, SourceType::LocalFolder); - // WebDAV should be next - assert_eq!(sources[1].source_type, SourceType::WebDAV); + // S3 should be next (interrupted more recently than WebDAV) + assert_eq!(sources[1].source_type, SourceType::S3); - // S3 should have lowest priority - assert_eq!(sources[2].source_type, SourceType::S3); + // WebDAV should have lowest priority (interrupted longest ago) + assert_eq!(sources[2].source_type, SourceType::WebDAV); } fn create_interrupted_source_with_time(user_id: Uuid, source_type: SourceType, minutes_ago: i64) -> Source {