From 9b275a406cd49a601e0463e05e3dfc77b0105797 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sat, 5 Feb 2022 15:37:08 -0800 Subject: [PATCH] tests: don't create workspaces in CommitBuilder tests --- lib/tests/test_commit_builder.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/tests/test_commit_builder.rs b/lib/tests/test_commit_builder.rs index f88ac8d35..4ca879928 100644 --- a/lib/tests/test_commit_builder.rs +++ b/lib/tests/test_commit_builder.rs @@ -25,8 +25,8 @@ use test_case::test_case; #[test_case(true ; "git backend")] fn test_initial(use_git: bool) { let settings = testutils::user_settings(); - let test_workspace = testutils::init_workspace(&settings, use_git); - let repo = &test_workspace.repo; + let test_repo = testutils::init_repo(&settings, use_git); + let repo = &test_repo.repo; let store = repo.store(); let root_file_path = RepoPath::from_internal_string("file"); @@ -70,8 +70,8 @@ fn test_initial(use_git: bool) { #[test_case(true ; "git backend")] fn test_rewrite(use_git: bool) { let settings = testutils::user_settings(); - let test_workspace = testutils::init_workspace(&settings, use_git); - let repo = &test_workspace.repo; + let test_repo = testutils::init_repo(&settings, use_git); + let repo = &test_repo.repo; let store = repo.store().clone(); let root_file_path = RepoPath::from_internal_string("file"); @@ -154,8 +154,8 @@ fn test_rewrite(use_git: bool) { // #[test_case(true ; "git backend")] fn test_commit_builder_descendants(use_git: bool) { let settings = testutils::user_settings(); - let test_workspace = testutils::init_workspace(&settings, use_git); - let repo = &test_workspace.repo; + let test_repo = testutils::init_repo(&settings, use_git); + let repo = &test_repo.repo; let store = repo.store().clone(); let mut tx = repo.start_transaction("test");