Comply w/ latest changes in mitchellh/cli

This commit is contained in:
Radek Simko 2017-08-14 17:19:40 +02:00
parent 655f1d6500
commit 38cb98fb0c
No known key found for this signature in database
GPG Key ID: 6823F3DCCE01BB19
1 changed files with 3 additions and 16 deletions

View File

@ -1,7 +1,6 @@
package command
import (
"bytes"
"fmt"
"testing"
"time"
@ -12,11 +11,7 @@ import (
)
func TestUiHookPreApply_periodicTimer(t *testing.T) {
ui := &cli.MockUi{
InputReader: bytes.NewReader([]byte{}),
ErrorWriter: bytes.NewBuffer([]byte{}),
OutputWriter: bytes.NewBuffer([]byte{}),
}
ui := cli.NewMockUi()
h := &UiHook{
Colorize: &colorstring.Colorize{
Colors: colorstring.DefaultColors,
@ -88,11 +83,7 @@ data.aws_availability_zones.available: Still destroying... (ID: 2017-03-05 10:56
}
func TestUiHookPreApply_destroy(t *testing.T) {
ui := &cli.MockUi{
InputReader: bytes.NewReader([]byte{}),
ErrorWriter: bytes.NewBuffer([]byte{}),
OutputWriter: bytes.NewBuffer([]byte{}),
}
ui := cli.NewMockUi()
h := &UiHook{
Colorize: &colorstring.Colorize{
Colors: colorstring.DefaultColors,
@ -152,11 +143,7 @@ func TestUiHookPreApply_destroy(t *testing.T) {
}
func TestUiHookPostApply_emptyState(t *testing.T) {
ui := &cli.MockUi{
InputReader: bytes.NewReader([]byte{}),
ErrorWriter: bytes.NewBuffer([]byte{}),
OutputWriter: bytes.NewBuffer([]byte{}),
}
ui := cli.NewMockUi()
h := &UiHook{
Colorize: &colorstring.Colorize{
Colors: colorstring.DefaultColors,