git://git.halfball.org
/
cni.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52be8aa
)
tests: loopback stdout must be JSON
author
Stefan Junker
<mail@stefanjunker.de>
Wed, 2 Mar 2016 14:22:16 +0000
(15:22 +0100)
committer
Stefan Junker
<mail@stefanjunker.de>
Wed, 2 Mar 2016 14:27:05 +0000
(15:27 +0100)
plugins/main/loopback/loopback_test.go
patch
|
blob
|
history
diff --git
a/plugins/main/loopback/loopback_test.go
b/plugins/main/loopback/loopback_test.go
index
9ae1198
..
cf10e1a
100644
(file)
--- a/
plugins/main/loopback/loopback_test.go
+++ b/
plugins/main/loopback/loopback_test.go
@@
-10,6
+10,7
@@
import (
"github.com/appc/cni/pkg/ns"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
+ "github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
)
@@
-54,6
+55,7
@@
var _ = Describe("Loopback", func() {
session, err := gexec.Start(command, GinkgoWriter, GinkgoWriter)
Expect(err).NotTo(HaveOccurred())
+ Eventually(session).Should(gbytes.Say(`{.*}`))
Eventually(session).Should(gexec.Exit(0))
var lo *net.Interface