Merge pull request #484 from jfrazelle/davids-patch

Do not import testing in the main binary.
This commit is contained in:
Madhu Venugopal 2015-09-02 10:48:10 -07:00
commit bc565c2d29
4 changed files with 16 additions and 14 deletions

View File

@ -1,7 +1,5 @@
package sandbox
import "testing"
// GenerateKey generates a sandbox key based on the passed
// container id.
func GenerateKey(containerID string) string {
@ -28,8 +26,3 @@ func GC() {
func InitOSContext() func() {
return func() {}
}
// SetupTestOSContext sets up a separate test OS context in which tests will be executed.
func SetupTestOSContext(t *testing.T) func() {
return func() {}
}

View File

@ -1,7 +1,5 @@
package sandbox
import "testing"
// GenerateKey generates a sandbox key based on the passed
// container id.
func GenerateKey(containerID string) string {
@ -28,8 +26,3 @@ func GC() {
func InitOSContext() func() {
return func() {}
}
// SetupTestOSContext sets up a separate test OS context in which tests will be executed.
func SetupTestOSContext(t *testing.T) func() {
return func() {}
}

8
sandbox/test_freebsd.go Normal file
View File

@ -0,0 +1,8 @@
package sandbox
import "testing"
// SetupTestOSContext sets up a separate test OS context in which tests will be executed.
func SetupTestOSContext(t *testing.T) func() {
return func() {}
}

8
sandbox/test_windows.go Normal file
View File

@ -0,0 +1,8 @@
package sandbox
import "testing"
// SetupTestOSContext sets up a separate test OS context in which tests will be executed.
func SetupTestOSContext(t *testing.T) func() {
return func() {}
}