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 committed 2019-02-12 11:18:39 -06:00
1 parent f73623789e
commit ac9375ae47
15 files changed
+58 -16

No files matched your search

@@ -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)
})