diff --git a/lib/service/service_test.go b/lib/service/service_test.go index 3bb12c8b70580..31d0ced7d14e3 100644 --- a/lib/service/service_test.go +++ b/lib/service/service_test.go @@ -105,7 +105,6 @@ func TestAdditionalExpectedRoles(t *testing.T) { cfg := servicecfg.MakeDefaultConfig() cfg.DataDir = makeTempDir(t) cfg.SetAuthServerAddress(utils.NetAddr{AddrNetwork: "tcp", Addr: "127.0.0.1:0"}) - cfg.Auth.StorageConfig.Params["path"] = t.TempDir() cfg.DiagnosticAddr = utils.NetAddr{AddrNetwork: "tcp", Addr: "127.0.0.1:0"} cfg.Auth.ListenAddr = utils.NetAddr{AddrNetwork: "tcp", Addr: "127.0.0.1:0"} @@ -136,7 +135,6 @@ func TestAdditionalExpectedRoles(t *testing.T) { cfg := servicecfg.MakeDefaultConfig() cfg.DataDir = makeTempDir(t) cfg.SetAuthServerAddress(utils.NetAddr{AddrNetwork: "tcp", Addr: "127.0.0.1:0"}) - cfg.Auth.StorageConfig.Params["path"] = t.TempDir() cfg.DiagnosticAddr = utils.NetAddr{AddrNetwork: "tcp", Addr: "127.0.0.1:0"} cfg.Auth.ListenAddr = utils.NetAddr{AddrNetwork: "tcp", Addr: "127.0.0.1:0"} @@ -280,7 +278,6 @@ func TestMonitor(t *testing.T) { cfg.DiagnosticAddr = utils.NetAddr{AddrNetwork: "tcp", Addr: "127.0.0.1:0"} cfg.SetAuthServerAddress(utils.NetAddr{AddrNetwork: "tcp", Addr: "127.0.0.1:0"}) cfg.Auth.Enabled = true - cfg.Auth.StorageConfig.Params["path"] = t.TempDir() cfg.Auth.ListenAddr = utils.NetAddr{AddrNetwork: "tcp", Addr: "127.0.0.1:0"} cfg.Proxy.Enabled = false cfg.SSH.Enabled = false @@ -1742,7 +1739,6 @@ func TestInstanceMetadata(t *testing.T) { t.Run(tc.name, func(t *testing.T) { cfg := newCfg() cfg.DataDir = makeTempDir(t) - cfg.Auth.StorageConfig.Params["path"] = t.TempDir() cfg.InstanceMetadataClient = tc.imClient process, err := NewTeleport(cfg)