()
| 769 | |
| 770 | #[tokio::test] |
| 771 | async fn test_file_store_delete_loop_checkpoint() { |
| 772 | let dir = tempdir().unwrap(); |
| 773 | let store = FileSessionStore::new(dir.path()).await.unwrap(); |
| 774 | store |
| 775 | .save_loop_checkpoint("run-y", &sample_checkpoint("run-y")) |
| 776 | .await |
| 777 | .unwrap(); |
| 778 | let loaded = store.load_loop_checkpoint("run-y").await.unwrap(); |
| 779 | assert_eq!(loaded.unwrap().run_id, "run-y"); |
| 780 | |
| 781 | store.delete_loop_checkpoint("run-y").await.unwrap(); |
| 782 | assert!(store.load_loop_checkpoint("run-y").await.unwrap().is_none()); |
| 783 | |
| 784 | // Idempotent on a missing file. |
| 785 | store.delete_loop_checkpoint("run-y").await.unwrap(); |
| 786 | } |
| 787 | |
| 788 | #[tokio::test] |
| 789 | async fn test_file_store_checkpoint_write_is_atomic_no_temp_leftovers() { |
nothing calls this directly
no test coverage detected