aboutsummaryrefslogtreecommitdiffstats
path: root/commands/add_test.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-06-22 10:38:09 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-06-22 10:38:09 -0400
commit6fc6a0f0ab8ce8c7b6ec510d1d7557a6e7cd6835 (patch)
tree9cd772fc325ed8a15c76306f458c4fef736fd94d /commands/add_test.go
parent52c724a03334dda9df30dbac22cb22a04cbe4260 (diff)
downloadgit-bug-6fc6a0f0ab8ce8c7b6ec510d1d7557a6e7cd6835.tar.gz
test(809): remove reliance on repo's filesystem
Diffstat (limited to 'commands/add_test.go')
-rw-r--r--commands/add_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/commands/add_test.go b/commands/add_test.go
index 63eda06e..077995a6 100644
--- a/commands/add_test.go
+++ b/commands/add_test.go
@@ -7,10 +7,10 @@ import (
"github.com/stretchr/testify/require"
)
-func newTestEnvUserAndBug(t *testing.T) (*testEnv, string, string) {
+func newTestEnvAndBug(t *testing.T) (*testEnv, string) {
t.Helper()
- testEnv, userID := newTestEnvAndUser(t)
+ testEnv, _ := newTestEnvAndUser(t)
opts := addOptions{
title: "this is a bug title",
message: "this is a bug message",
@@ -23,10 +23,10 @@ func newTestEnvUserAndBug(t *testing.T) (*testEnv, string, string) {
bugID := strings.Split(testEnv.out.String(), " ")[0]
testEnv.out.Reset()
- return testEnv, userID, bugID
+ return testEnv, bugID
}
func TestAdd(t *testing.T) {
- _, _, user := newTestEnvUserAndBug(t)
- require.Regexp(t, "^[0-9A-Fa-f]{7}$", user)
+ _, bugID := newTestEnvAndBug(t)
+ require.Regexp(t, "^[0-9A-Fa-f]{7}$", bugID)
}