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
@@ -17,6 +17,8 @@
package repositories_test
import (
"github.com/sirupsen/logrus"
"io/ioutil"
"testing"
. "github.com/onsi/ginkgo"
@@ -27,3 +29,7 @@ func TestRepositories(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Repositories Suite")
}
var _ = BeforeSuite(func() {
logrus.SetOutput(ioutil.Discard)
})