Fix snapshot IsEmpty
This commit is contained in:
parent
e751b83a3f
commit
3a44359d7b
|
@ -104,7 +104,8 @@ func (c *configSnapshotTerminatingGateway) IsEmpty() bool {
|
|||
len(c.WatchedIntentions) == 0 &&
|
||||
len(c.ServiceGroups) == 0 &&
|
||||
len(c.WatchedServices) == 0 &&
|
||||
len(c.ServiceResolvers) == 0
|
||||
len(c.ServiceResolvers) == 0 &&
|
||||
len(c.WatchedResolvers) == 0
|
||||
}
|
||||
|
||||
type configSnapshotMeshGateway struct {
|
||||
|
|
|
@ -841,14 +841,8 @@ func TestState_WatchesAndUpdates(t *testing.T) {
|
|||
require.True(t, snap.ConnectProxy.IsEmpty())
|
||||
require.True(t, snap.MeshGateway.IsEmpty())
|
||||
require.True(t, snap.IngressGateway.IsEmpty())
|
||||
require.True(t, snap.TerminatingGateway.IsEmpty())
|
||||
require.Equal(t, indexedRoots, snap.Roots)
|
||||
require.Empty(t, snap.TerminatingGateway.WatchedServices)
|
||||
require.Empty(t, snap.TerminatingGateway.ServiceGroups)
|
||||
require.Empty(t, snap.TerminatingGateway.WatchedLeaves)
|
||||
require.Empty(t, snap.TerminatingGateway.ServiceLeaves)
|
||||
require.Empty(t, snap.TerminatingGateway.WatchedResolvers)
|
||||
require.Empty(t, snap.TerminatingGateway.ServiceResolvers)
|
||||
require.Empty(t, snap.TerminatingGateway.WatchedIntentions)
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue