Skip to content

Commit e78fdc9

Browse files
committed
test: increased terminal width to a reasonable width when mocking UI
1 parent 9d8ea65 commit e78fdc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testhelpers/terminal/test_ui.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bytes"
55
"fmt"
66
"io"
7+
"os"
78
"strings"
89

910
term "github.com/IBM-Cloud/ibm-cloud-cli-sdk/bluemix/terminal"
@@ -35,6 +36,9 @@ type FakeUI struct {
3536
}
3637

3738
func NewFakeUI() *FakeUI {
39+
// NOTE: when mocking the UI we would like to have a large
40+
/// terminal width to start with
41+
os.Setenv("TEST_TERMINAL_WIDTH", "300")
3842
return &FakeUI{}
3943
}
4044

0 commit comments

Comments
 (0)