This commit is contained in:
Mitchell Hashimoto 2014-02-21 20:02:55 -08:00
parent 20d7f74fc4
commit f3494fc77a
3 changed files with 6 additions and 6 deletions

View File

@ -81,8 +81,8 @@ func DefaultEnvironmentConfig() *EnvironmentConfig {
config := &EnvironmentConfig{}
config.Commands = make([]string, 0)
config.Ui = &BasicUi{
Reader: os.Stdin,
Writer: os.Stdout,
Reader: os.Stdin,
Writer: os.Stdout,
ErrorWriter: os.Stderr,
}

View File

@ -30,8 +30,8 @@ func testComponentFinder() *ComponentFinder {
func testEnvironment() Environment {
config := DefaultEnvironmentConfig()
config.Ui = &BasicUi{
Reader: new(bytes.Buffer),
Writer: new(bytes.Buffer),
Reader: new(bytes.Buffer),
Writer: new(bytes.Buffer),
ErrorWriter: new(bytes.Buffer),
}

View File

@ -25,8 +25,8 @@ func readErrorWriter(ui *BasicUi) (result string) {
func testUi() *BasicUi {
return &BasicUi{
Reader: new(bytes.Buffer),
Writer: new(bytes.Buffer),
Reader: new(bytes.Buffer),
Writer: new(bytes.Buffer),
ErrorWriter: new(bytes.Buffer),
}
}