File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,9 @@ func TestGetServiceClusters(t *testing.T) {
291291 },
292292 },
293293 }
294+ // We should only get one cluster since the other is for an ExternalName
295+ // service.
296+ assert .Len (t , d .GetServiceClusters (), 1 )
294297
295298 dagWithMirror := & DAG {
296299 Listeners : map [string ]* Listener {
@@ -300,7 +303,6 @@ func TestGetServiceClusters(t *testing.T) {
300303 Routes : map [string ]* Route {
301304 "foo" : {
302305 Clusters : []* Cluster {
303- {Upstream : & Service {ExternalName : "bar.com" }},
304306 {Upstream : & Service {}},
305307 },
306308 MirrorPolicies : []* MirrorPolicy {
@@ -317,10 +319,6 @@ func TestGetServiceClusters(t *testing.T) {
317319 },
318320 },
319321 }
320- // We should only get one cluster since the other is for an ExternalName
321- // service.
322- assert .Len (t , d .GetServiceClusters (), 1 )
323-
324- // We should get one two clusters since we have mirrorPolicies.
322+ // We should get two clusters since we have mirrorPolicies.
325323 assert .Len (t , dagWithMirror .GetServiceClusters (), 2 )
326324}
You can’t perform that action at this time.
0 commit comments