Discard logs created during tests

- Make sure output is being set to discard for logrus to reduce clutter in the console
This commit is contained in:
Rob Mulholand
2019-02-12 11:18:39 -06:00
parent f73623789e
commit ac9375ae47
15 changed files with 58 additions and 16 deletions
@@ -1,6 +1,8 @@
package vat_test
import (
"github.com/sirupsen/logrus"
"io/ioutil"
"testing"
. "github.com/onsi/ginkgo"
@@ -11,3 +13,7 @@ func TestVat(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Vat Suite")
}
var _ = BeforeSuite(func() {
logrus.SetOutput(ioutil.Discard)
})