agent: add additional assertion to test

This commit is contained in:
Mitchell Hashimoto 2018-06-13 22:24:19 +01:00 committed by Jack Pearkes
parent 72a58dca67
commit 1f3d2701f3
1 changed files with 1 additions and 0 deletions

View File

@ -1691,6 +1691,7 @@ func TestAgent_DeregisterService_withManagedProxy(t *testing.T) {
}
// Get the proxy ID
require.Len(a.State.Proxies(), 1)
var proxyID string
for _, p := range a.State.Proxies() {
proxyID = p.Proxy.ProxyService.ID