From e27c2db966fabf5a9d81953cf2671d3ed3aaec94 Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Fri, 3 Nov 2017 16:47:33 -0400 Subject: [PATCH] update agent test for downgrades --- command/agent/agent_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/agent/agent_test.go b/command/agent/agent_test.go index 90c488e925d6..1286fb14733d 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()) }