aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/user_create_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/user_create_test.go b/commands/user_create_test.go
index c2e2398f..07ed657b 100644
--- a/commands/user_create_test.go
+++ b/commands/user_create_test.go
@@ -23,8 +23,10 @@ func newTestEnvAndUser(t *testing.T) (*testEnv, string) {
})
testEnv.Execute(t)
+ userID := strings.TrimSpace(testEnv.out.String())
+ testEnv.out.Reset()
- return testEnv, strings.TrimSpace(testEnv.out.String())
+ return testEnv, userID
}
func TestUserCreateCommand(t *testing.T) {