diff --git a/command/agent/agent_test.go b/command/agent/agent_test.go index 90c488e925d..1286fb14733 100644 --- a/command/agent/agent_test.go +++ b/command/agent/agent_test.go @@ -638,10 +638,10 @@ func TestServer_Reload_TLS_DowngradeFromTLS(t *testing.T) { TLSConfig: &sconfig.TLSConfig{}, } - assert.NotNil(agentConfig.TLSConfig.GetKeyLoader().Certificate) + assert.False(agentConfig.TLSConfig.IsEmpty()) err := agent.Reload(newConfig) assert.Nil(err) - assert.Nil(agentConfig.TLSConfig.GetKeyLoader().Certificate) + assert.True(agentConfig.TLSConfig.IsEmpty()) }