mirror of
https://github.com/moby/moby.git
synced 2026-07-13 19:12:11 +00:00
Remove libnetwork_test.TestMain
It only removed the test host's libnet Bolt db file, and didn't need to do that because the tests use a TempDir for it. Signed-off-by: Rob Murray <rob.murray@docker.com>
This commit is contained in:
@@ -42,13 +42,6 @@ const (
|
||||
bridgeNetType = "bridge"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
// Cleanup local datastore file
|
||||
_ = os.Remove("/var/lib/docker/network/files/local-kv.db")
|
||||
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
func newController(t *testing.T) *libnetwork.Controller {
|
||||
t.Helper()
|
||||
c, err := libnetwork.New(
|
||||
|
||||
Reference in New Issue
Block a user