diff options
Diffstat (limited to 'tests/cli.rs')
-rw-r--r-- | tests/cli.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/cli.rs b/tests/cli.rs index 0520e89..598152b 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -273,7 +273,6 @@ fn can_delete_a_repo() -> Result<()> { } #[test] -#[ignore] fn git_housekeeping_repacks_objects() -> Result<()> { let mut c = TestContext::new_interactive()?; let repo_path = personal_repo_path(REPO_NAME); @@ -284,11 +283,15 @@ fn git_housekeeping_repacks_objects() -> Result<()> { let checkout_dir = create_clone(&c, &repo_dir, REPO_NAME); create_commit(&checkout_dir)?; + push(&checkout_dir, "main"); + + let packs_dir = repo_dir.join("objects").join("pack"); + + assert_eq!(packs_dir.read_dir()?.count(), 0); + c.p.send_line(&format!("housekeeping {repo_path}"))?; + c.p.exp_string(&format!("Successfully did housekeeping on \"{repo_path}\""))?; + assert!(packs_dir.read_dir()?.count() > 0); - // push to the repo - // check that objects exist, not packs - // run housekeeping - // check that only packs exist Ok(()) } |