test: reduce test output noise

pull/1117/head
nils måsén 3 years ago
parent ec43ecedc4
commit 2c8695683d

@ -1,6 +1,7 @@
package actions_test package actions_test
import ( import (
"github.com/sirupsen/logrus"
"testing" "testing"
"time" "time"
@ -14,6 +15,7 @@ import (
func TestActions(t *testing.T) { func TestActions(t *testing.T) {
RegisterFailHandler(Fail) RegisterFailHandler(Fail)
logrus.SetOutput(GinkgoWriter)
RunSpecs(t, "Actions Suite") RunSpecs(t, "Actions Suite")
} }

@ -117,7 +117,6 @@ var _ = Describe("Digests", func() {
), ),
) )
dig, err := digest.GetDigest(server.URL(), "token") dig, err := digest.GetDigest(server.URL(), "token")
println(dig)
Expect(server.ReceivedRequests()).Should(HaveLen(1)) Expect(server.ReceivedRequests()).Should(HaveLen(1))
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
Expect(dig).To(Equal(mockDigest)) Expect(dig).To(Equal(mockDigest))

@ -1,6 +1,7 @@
package registry_test package registry_test
import ( import (
"github.com/sirupsen/logrus"
"testing" "testing"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
@ -9,5 +10,6 @@ import (
func TestRegistry(t *testing.T) { func TestRegistry(t *testing.T) {
RegisterFailHandler(Fail) RegisterFailHandler(Fail)
logrus.SetOutput(GinkgoWriter)
RunSpecs(t, "Registry Suite") RunSpecs(t, "Registry Suite")
} }

Loading…
Cancel
Save