Skip to content

Commit 41cf188

Browse files
Update Test
1 parent 1f6493a commit 41cf188

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/git-auto-commit.bats

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,6 @@ cat_github_output() {
466466
}
467467

468468
@test "It pushes generated commit and tag to remote branch and updates commit sha" {
469-
# Create "a-new-branch"-branch and then immediately switch back to ${FAKE_DEFAULT_BRANCH}
470-
git checkout -b a-new-branch
471-
git checkout ${FAKE_DEFAULT_BRANCH}
472-
473469
INPUT_BRANCH="a-new-branch"
474470
INPUT_TAGGING_MESSAGE="v2.0.0"
475471

@@ -492,7 +488,7 @@ cat_github_output() {
492488
assert_output --partial refs/tags/v2.0.0
493489

494490
# Assert that branch "a-new-branch" was updated on remote
495-
current_sha="$(git rev-parse --verify --short a-new-branch)"
491+
current_sha="$(git rev-parse --verify --short ${FAKE_DEFAULT_BRANCH})"
496492
remote_sha="$(git rev-parse --verify --short origin/a-new-branch)"
497493

498494
assert_equal $current_sha $remote_sha

0 commit comments

Comments
 (0)