()
| 705 | #[test] |
| 706 | #[serial] |
| 707 | fn test_log_run_empty_repository() { |
| 708 | let _guard = TestGuard::new(); |
| 709 | |
| 710 | // Initialize empty repository |
| 711 | drop(Repository::init(".").unwrap()); |
| 712 | |
| 713 | let log = Log::new(); |
| 714 | let result = log.run(); |
| 715 | |
| 716 | // The initializer no longer holds the writer lock during the query. |
| 717 | assert!(result.is_ok(), "{result:?}"); |
| 718 | } |
| 719 | |
| 720 | #[test] |
| 721 | #[serial] |