tests: don't create workspaces in repo-loading tests

This commit is contained in:
Martin von Zweigbergk 2022-02-05 13:41:28 -08:00
parent 0fd3b8ef1a
commit db47e14f69

View file

@ -20,8 +20,8 @@ use test_case::test_case;
#[test_case(true ; "git backend")]
fn test_load_at_operation(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 mut tx = repo.start_transaction("add commit");
let commit = testutils::create_random_commit(&settings, repo).write_to_repo(tx.mut_repo());