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:
Rob Murray
2024-10-30 09:31:13 +00:00
parent dc9390cd75
commit fbb595cb66

View File

@@ -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(