Skip to content

Commit dc65af9

Browse files
author
nate smith
committed
fix tests
1 parent ba3e1e5 commit dc65af9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/auth/shared/git_credential_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ func TestGitCredentialSetup_setOurs(t *testing.T) {
2626
cs, restoreRun := run.Stub()
2727
defer restoreRun(t)
2828
cs.Register(`git config --global --replace-all credential\.`, 0, "", func(args []string) {
29-
if key := args[len(args)-2]; key != "credential.https://example.com.helper" {
29+
if key := args[len(args)-2]; key != "credential.https://*.example.com.helper" {
3030
t.Errorf("git config key was %q", key)
3131
}
3232
if val := args[len(args)-1]; val != "" {
3333
t.Errorf("global credential helper configured to %q", val)
3434
}
3535
})
3636
cs.Register(`git config --global --add credential\.`, 0, "", func(args []string) {
37-
if key := args[len(args)-2]; key != "credential.https://example.com.helper" {
37+
if key := args[len(args)-2]; key != "credential.https://*.example.com.helper" {
3838
t.Errorf("git config key was %q", key)
3939
}
4040
if val := args[len(args)-1]; val != "!/path/to/gh auth git-credential" {

0 commit comments

Comments
 (0)