Fix import

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
Ulysses Souza 2020-09-30 11:25:30 +02:00
parent 044e7f571d
commit ac8975ea1e
2 changed files with 2 additions and 3 deletions

View File

@ -17,11 +17,11 @@
package formatter
import (
"bytes"
"fmt"
"io"
"testing"
"go.uber.org/zap/buffer"
"gotest.tools/assert"
)
@ -39,7 +39,7 @@ func TestPrint(t *testing.T) {
},
}
b := &buffer.Buffer{}
b := &bytes.Buffer{}
assert.NilError(t, Print(testList, PRETTY, b, func(w io.Writer) {
for _, t := range testList {
_, _ = fmt.Fprintf(w, "%s\t%s\n", t.Name, t.Status)

1
go.mod
View File

@ -54,7 +54,6 @@ require (
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.6.1
go.uber.org/zap v1.10.0
golang.org/x/mod v0.3.0
golang.org/x/net v0.0.0-20200822124328-c89045814202
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43