diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-07-24 14:48:33 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-07-24 14:48:33 +0100 |
| commit | dc05e1ca72d4c7eec9e6aeb989c2aef35a33aab8 (patch) | |
| tree | 5cbfb0709ba88e79949a8b69ce2ef9de939928ea /tests/list.rs | |
| parent | ab8785ef986b583dbded578c5b90435adfca526f (diff) | |
test: fix `pull` tests
it was so much clearer what the problem was after
abstracting reused test code
Diffstat (limited to 'tests/list.rs')
| -rw-r--r-- | tests/list.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/list.rs b/tests/list.rs index c92390b..9ffc26a 100644 --- a/tests/list.rs +++ b/tests/list.rs | |||
| @@ -1105,7 +1105,8 @@ mod when_main_branch_is_uptodate { | |||
| 1105 | let (_, test_repo) = | 1105 | let (_, test_repo) = |
| 1106 | create_proposals_and_repo_with_proposal_pulled_and_checkedout(1)?; | 1106 | create_proposals_and_repo_with_proposal_pulled_and_checkedout(1)?; |
| 1107 | 1107 | ||
| 1108 | ammend_last_commit_and_checkout_main(&test_repo)?; | 1108 | amend_last_commit(&test_repo)?; |
| 1109 | test_repo.checkout("main")?; | ||
| 1109 | 1110 | ||
| 1110 | // run test | 1111 | // run test |
| 1111 | let mut p = CliTester::new_from_dir(&test_repo.dir, ["list"]); | 1112 | let mut p = CliTester::new_from_dir(&test_repo.dir, ["list"]); |