From 5cd06e00cc30eff34f88ab7992437b783ddaeeea Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Fri, 9 Jun 2023 11:46:37 -0500 Subject: [PATCH] patch test --- agent/agent_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/agent/agent_test.go b/agent/agent_test.go index 63cf583b23..b234573f3e 100644 --- a/agent/agent_test.go +++ b/agent/agent_test.go @@ -6243,7 +6243,13 @@ func TestAgent_checkServerLastSeen(t *testing.T) { }, RuntimeConfig: &config.RuntimeConfig{}, Cache: cache.New(cache.Options{}), + NetRPC: &LazyNetRPC{}, } + bd.LeafCertManager = leafcert.NewManager(leafcert.Deps{ + CertSigner: leafcert.NewNetRPCCertSigner(bd.NetRPC), + RootsReader: leafcert.NewCachedRootsReader(bd.Cache, "dc1"), + Config: leafcert.Config{}, + }) agent, err := New(bd) require.NoError(t, err)