Merge pull request #72 from rosenhouse/move-echosvr

testing: move echosvr into testutils
This commit is contained in:
Casey Callendrello 2017-09-07 14:22:03 +02:00 committed by GitHub
commit b24225fc17
4 changed files with 9 additions and 3 deletions

View File

@ -16,7 +16,7 @@ import (
var binaryPath string
var _ = SynchronizedBeforeSuite(func() []byte {
binaryPath, err := gexec.Build("github.com/containernetworking/plugins/plugins/meta/portmap/echosvr")
binaryPath, err := gexec.Build("github.com/containernetworking/plugins/pkg/testutils/echosvr")
Expect(err).NotTo(HaveOccurred())
return []byte(binaryPath)
}, func(data []byte) {

View File

@ -9,5 +9,5 @@ import (
func TestEchosvr(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Echosvr Suite")
RunSpecs(t, "Testutils Echosvr Suite")
}

View File

@ -1,3 +1,9 @@
// Echosvr is a simple TCP echo server
//
// It prints its listen address on stdout
// 127.0.0.1:xxxxx
// A test should wait for this line, parse it
// and may then attempt to connect.
package main
import (

View File

@ -43,7 +43,7 @@ func TestPortmap(t *testing.T) {
var echoServerBinaryPath string
var _ = SynchronizedBeforeSuite(func() []byte {
binaryPath, err := gexec.Build("github.com/containernetworking/plugins/plugins/meta/portmap/echosvr")
binaryPath, err := gexec.Build("github.com/containernetworking/plugins/pkg/testutils/echosvr")
Expect(err).NotTo(HaveOccurred())
return []byte(binaryPath)
}, func(data []byte) {