diff options
-rw-r--r-- | bug/bug_actions_test.go | 7 | ||||
-rw-r--r-- | commands/select/select_test.go | 7 | ||||
-rw-r--r-- | tests/read_bugs_test.go | 7 |
3 files changed, 21 insertions, 0 deletions
diff --git a/bug/bug_actions_test.go b/bug/bug_actions_test.go index e68132fc..a60e5c68 100644 --- a/bug/bug_actions_test.go +++ b/bug/bug_actions_test.go @@ -31,6 +31,13 @@ func createRepo(bare bool) *repository.GitRepo { log.Fatal(err) } + if err := repo.StoreConfig("user.name", "testuser"); err != nil { + log.Fatal("failed to set user.name for test repository: ", err) + } + if err := repo.StoreConfig("user.email", "testuser@example.com"); err != nil { + log.Fatal("failed to set user.email for test repository: ", err) + } + return repo } diff --git a/commands/select/select_test.go b/commands/select/select_test.go index 79c8cbf0..fe501d76 100644 --- a/commands/select/select_test.go +++ b/commands/select/select_test.go @@ -96,6 +96,13 @@ func createRepo() *repository.GitRepo { log.Fatal(err) } + if err := repo.StoreConfig("user.name", "testuser"); err != nil { + log.Fatal("failed to set user.name for test repository: ", err) + } + if err := repo.StoreConfig("user.email", "testuser@example.com"); err != nil { + log.Fatal("failed to set user.email for test repository: ", err) + } + return repo } diff --git a/tests/read_bugs_test.go b/tests/read_bugs_test.go index b28da49b..e5de0cc2 100644 --- a/tests/read_bugs_test.go +++ b/tests/read_bugs_test.go @@ -31,6 +31,13 @@ func createRepo(bare bool) *repository.GitRepo { log.Fatal(err) } + if err := repo.StoreConfig("user.name", "testuser"); err != nil { + log.Fatal("failed to set user.name for test repository: ", err) + } + if err := repo.StoreConfig("user.email", "testuser@example.com"); err != nil { + log.Fatal("failed to set user.email for test repository: ", err) + } + return repo } |