Skip to content

Commit 364d9ab

Browse files
authored
Merge pull request #428 from IBM-Cloud/fix/increase-term-width-test
chore: increased test terminal width to a reasonable width
2 parents 9d8ea65 + e78fdc9 commit 364d9ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: testhelpers/terminal/test_ui.go

+4
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)