Skip to content

Commit

Permalink
fixup! fix: silence output when running go test
Browse files Browse the repository at this point in the history
remove restoration of stdout and stderr
  • Loading branch information
trym-b committed Mar 8, 2024
1 parent 67790ba commit 0369090
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ import (
)

func TestEmptyCommandPrompt(t *testing.T) {
stdout_backup := os.Stdout
stderr_backup := os.Stderr
os.Stdout = nil
os.Stderr = nil

shell := cmd.NewCommand()
_ = shell.Execute()

os.Stdout = stdout_backup
os.Stderr = stderr_backup
}

0 comments on commit 0369090

Please sign in to comment.