Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Remove unnecessary setup_remote calls in tests

Maximilian Roos302b64fa14f9
diff --git a/tests/integration_tests/list.rs b/tests/integration_tests/list.rs
index 9efe3d54e..c425a1dd8 100644
--- a/tests/integration_tests/list.rs
+++ b/tests/integration_tests/list.rs
@@ -779,7 +779,6 @@ fn test_list_with_upstream_tracking() {
fn test_list_primary_on_different_branch() {
let mut repo = TestRepo::new();
repo.commit("Initial commit");
- repo.setup_remote("main");
repo.switch_primary_to("develop");
assert_eq!(repo.current_branch(), "develop");
diff --git a/tests/integration_tests/post_start_commands.rs b/tests/integration_tests/post_start_commands.rs
index 406ad7bce..3a299d1ab 100644
--- a/tests/integration_tests/post_start_commands.rs
+++ b/tests/integration_tests/post_start_commands.rs
@@ -201,9 +201,8 @@ approved-commands = [
#[test]
fn test_post_create_default_branch_template() {
- let mut repo = TestRepo::new();
+ let repo = TestRepo::new();
repo.commit("Initial commit");
- repo.setup_remote("main");
// Create project config with default_branch template variable
repo.write_project_config(
diff --git a/tests/integration_tests/switch.rs b/tests/integration_tests/switch.rs
index 305c4538c..2b873f708 100644
--- a/tests/integration_tests/switch.rs
+++ b/tests/integration_tests/switch.rs
@@ -424,7 +424,6 @@ fn test_switch_create_no_remote() {
#[test]
fn test_switch_primary_on_different_branch() {
let mut repo = setup_switch_repo();
- repo.setup_remote("main");
repo.switch_primary_to("develop");
assert_eq!(repo.current_branch(), "develop");