diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-05-28 10:29:30 -0400 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2022-05-28 10:29:30 -0400 |
commit | 508d0eb82a8a29cc814e87d11f7ee0959cb137ab (patch) | |
tree | 3a01fa29d3d57954003fb4f5f0489727b6587a89 | |
parent | 50324b8a7c23d5f68246af05e59024278e199148 (diff) | |
download | git-bug-508d0eb82a8a29cc814e87d11f7ee0959cb137ab.tar.gz |
test(778): clear output after user creation
-rw-r--r-- | commands/user_create_test.go | 4 |
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) { |