mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-06-16 02:25:48 +00:00
Merge pull request #484 from jfrazelle/davids-patch
Do not import testing in the main binary.
This commit is contained in:
@@ -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() {}
|
||||
}
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user