tests: loopback stdout must be JSON
This commit is contained in:
parent
52be8aa615
commit
80ab40470c
@ -10,6 +10,7 @@ import (
|
|||||||
"github.com/appc/cni/pkg/ns"
|
"github.com/appc/cni/pkg/ns"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
"github.com/onsi/gomega/gbytes"
|
||||||
"github.com/onsi/gomega/gexec"
|
"github.com/onsi/gomega/gexec"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -54,6 +55,7 @@ var _ = Describe("Loopback", func() {
|
|||||||
session, err := gexec.Start(command, GinkgoWriter, GinkgoWriter)
|
session, err := gexec.Start(command, GinkgoWriter, GinkgoWriter)
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
|
Eventually(session).Should(gbytes.Say(`{.*}`))
|
||||||
Eventually(session).Should(gexec.Exit(0))
|
Eventually(session).Should(gexec.Exit(0))
|
||||||
|
|
||||||
var lo *net.Interface
|
var lo *net.Interface
|
||||||
|
Loading…
x
Reference in New Issue
Block a user