Skip to content

Commit

Permalink
update agent test for downgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseakomlo committed Nov 3, 2017
1 parent b1e885b commit e27c2db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

0 comments on commit e27c2db

Please sign in to comment.