Files
movies-diary/crates/application/tests/import/cleanup_test.rs
Gabriel Kaszewski 017b58d6fa
Some checks failed
CI / Check / Test (push) Has been cancelled
code refactor
Reviewed-on: #26
2026-10-26 09:36:23 +00:00

15 lines
305 B
Rust

use std::sync::Arc;
use domain::testing::InMemoryStore;
use application::import::cleanup;
#[tokio::test]
async fn returns_zero_when_nothing_expired() {
let sessions = InMemoryStore::new();
let result = cleanup::execute(Arc::clone(&sessions) as _).await.unwrap();
assert_eq!(result, 0);
}