Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fixing broken test branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Oct 10, 2019
1 parent 7c012ae commit 8fec895
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/utils/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestGitCheckout(t *testing.T) {
require.NoError(t, cerr)

//test
ferr := utils.GitCheckout(clonePath, "branch_test")
ferr := utils.GitCheckout(clonePath, "do_not_delete_capsulecd_test_branch")

//assert
require.NoError(t, ferr)
Expand Down Expand Up @@ -144,7 +144,7 @@ func TestGitCommit(t *testing.T) {
defer deleteTestRepo(dirPath)
clonePath, cerr := utils.GitClone(dirPath, "commit_to_npm_analogj_test", "https://github.com/AnalogJ/npm_analogj_test.git")
require.NoError(t, cerr)
ferr := utils.GitCheckout(clonePath, "branch_test")
ferr := utils.GitCheckout(clonePath, "do_not_delete_capsulecd_test_branch")
require.NoError(t, ferr)
signature := utils.GitSignature("CapsuleCD", "CapsuleCD@users.noreply.github.com")

Expand Down Expand Up @@ -181,7 +181,7 @@ func TestGitTag(t *testing.T) {
defer deleteTestRepo(dirPath)
clonePath, cerr := utils.GitClone(dirPath, "add_tag_npm_analogj_test", "https://github.com/AnalogJ/npm_analogj_test.git")
require.NoError(t, cerr)
ferr := utils.GitCheckout(clonePath, "branch_test")
ferr := utils.GitCheckout(clonePath, "do_not_delete_capsulecd_test_branch")
require.NoError(t, ferr)
signature := utils.GitSignature("CapsuleCD", "CapsuleCD@users.noreply.github.com")

Expand Down Expand Up @@ -223,7 +223,7 @@ func TestGitPush(t *testing.T) {
clonePath, cerr := utils.GitClone(dirPath, "push_npm_analogj_test", "https://access_token_here:@github.com/AnalogJ/npm_analogj_test.git")
require.NoError(t, cerr)

ferr := utils.GitCheckout(clonePath, "branch_test")
ferr := utils.GitCheckout(clonePath, "do_not_delete_capsulecd_test_branch")
require.NoError(t, ferr)
signature := utils.GitSignature("CapsuleCD", "CapsuleCD@users.noreply.github.com")

Expand All @@ -235,7 +235,7 @@ func TestGitPush(t *testing.T) {
gcerr := utils.GitCommit(clonePath, "Added New File", signature)
require.NoError(t, gcerr)

perr := utils.GitPush(clonePath, "branch_test", "branch_test", "v1.0.0")
perr := utils.GitPush(clonePath, "do_not_delete_capsulecd_test_branch", "do_not_delete_capsulecd_test_branch", "v1.0.0")
require.NoError(t, perr)

}
Expand Down

0 comments on commit 8fec895

Please sign in to comment.