Browse code

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>

Rob Murray authored on 2024/10/30 18:31:13
Showing 1 changed files
... ...
@@ -42,13 +42,6 @@ const (
42 42
 	bridgeNetType = "bridge"
43 43
 )
44 44
 
45
-func TestMain(m *testing.M) {
46
-	// Cleanup local datastore file
47
-	_ = os.Remove("/var/lib/docker/network/files/local-kv.db")
48
-
49
-	os.Exit(m.Run())
50
-}
51
-
52 45
 func newController(t *testing.T) *libnetwork.Controller {
53 46
 	t.Helper()
54 47
 	c, err := libnetwork.New(