Skip to content

Commit 10f1bc2

Browse files
committed
Use userPassword in place of hard-coded password
1 parent 97bafb9 commit 10f1bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integrations/git_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func TestGit(t *testing.T) {
8080
})
8181

8282
u.Path = "user2/repo-tmp-17.git"
83-
u.User = url.UserPassword("user2", "password")
83+
u.User = url.UserPassword("user2", userPassword)
8484
t.Run("Clone", func(t *testing.T) {
8585
err = git.Clone(u.String(), dstPath, git.CloneRepoOptions{})
8686
assert.NoError(t, err)
@@ -159,7 +159,7 @@ func TestGit(t *testing.T) {
159159
assert.NoError(t, err)
160160

161161
//Push
162-
u.User = url.UserPassword("user2", "password")
162+
u.User = url.UserPassword("user2", userPassword)
163163
err = git.Push(dstPath, git.PushOptions{
164164
Branch: "master",
165165
Remote: u.String(),

0 commit comments

Comments
 (0)