summaryrefslogtreecommitdiff
path: root/libnetwork/drvregistry
diff options
context:
space:
mode:
authorFlavio Crisciani <flavio.crisciani@docker.com>2018-05-18 14:10:14 -0700
committerFlavio Crisciani <flavio.crisciani@docker.com>2018-06-28 16:14:08 -0700
commit7fc1795cdf844c9f6769ecb8bbd84eea1397860e (patch)
tree91d290dc14672aa0772233f2403ed3d62ae5b58c /libnetwork/drvregistry
parentef457321a91f1e5db901e33bf8cdceced484e6ab (diff)
downloaddocker-7fc1795cdf844c9f6769ecb8bbd84eea1397860e.tar.gz
Allows to set generic knobs on the Sandbox
Refactor the ostweaks file to allows a more easy reuse Add a method on the osl.Sandbox interface to allow setting knobs on the sandbox Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
Diffstat (limited to 'libnetwork/drvregistry')
-rw-r--r--libnetwork/drvregistry/drvregistry_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/libnetwork/drvregistry/drvregistry_test.go b/libnetwork/drvregistry/drvregistry_test.go
index 742bee788f..2251e03302 100644
--- a/libnetwork/drvregistry/drvregistry_test.go
+++ b/libnetwork/drvregistry/drvregistry_test.go
@@ -1,7 +1,6 @@
package drvregistry
import (
- "flag"
"sort"
"testing"
@@ -13,10 +12,10 @@ import (
nullIpam "github.com/docker/libnetwork/ipams/null"
remoteIpam "github.com/docker/libnetwork/ipams/remote"
"github.com/stretchr/testify/assert"
-)
-var runningInContainer = flag.Bool("incontainer", false,
- "Indicates if the test is running in a container")
+ // this takes care of the incontainer flag
+ _ "github.com/docker/libnetwork/testutils"
+)
const mockDriverName = "mock-driver"