From 3bb02ac949c05420c59fc3b06a24f4cddcc64649 Mon Sep 17 00:00:00 2001 From: Andy Goldstein Date: Mon, 11 Sep 2017 13:59:41 -0400 Subject: [PATCH] Use ioutil.Discard in unit test Signed-off-by: Andy Goldstein --- pkg/backup/backup_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/backup/backup_test.go b/pkg/backup/backup_test.go index 8f06b4901..efe9cbd13 100644 --- a/pkg/backup/backup_test.go +++ b/pkg/backup/backup_test.go @@ -23,6 +23,7 @@ import ( "encoding/json" "errors" "io" + "io/ioutil" "reflect" "sort" "testing" @@ -444,8 +445,7 @@ func TestBackupMethod(t *testing.T) { require.NoError(t, err) output := new(bytes.Buffer) - log := new(bytes.Buffer) - err = backupper.Backup(backup, output, log) + err = backupper.Backup(backup, output, ioutil.Discard) require.NoError(t, err) expectedFiles := sets.NewString(