diff --git a/admiral/pkg/clusters/handler_test.go b/admiral/pkg/clusters/handler_test.go index 1ebd7066..74e2570e 100644 --- a/admiral/pkg/clusters/handler_test.go +++ b/admiral/pkg/clusters/handler_test.go @@ -2156,9 +2156,9 @@ func makeDestinationRuleHandler(clusterName string, remoteRegistry *RemoteRegist func TestHandleDestinationRuleEvent(t *testing.T) { var ( cname = "test.mesh" - clusterName1 = "cluster-1-k8s" - clusterName2 = "cluster-2-k8s" - dependentClusters = []string{"dep-cluster-1-k8s"} + clusterName1 = "testcluster-1-k8s" + clusterName2 = "testcluster-2-k8s" + dependentClusters = []string{"testdep-cluster-1-k8s"} istioFakeClient = istioFake.NewSimpleClientset() workingRemoteRegistryForCluster1 = makeRemoteRegistry( []string{clusterName1}, @@ -2200,7 +2200,7 @@ func TestHandleDestinationRuleEvent(t *testing.T) { destinationRule: workingDR1, handler: &workingDestinationRuleHandlerForCluster2, event: 0, - expectedErr: errors.New("op=Event type=DestinationRule name=working-vs-1 cluster=dep-cluster-1-k8s message=remote controller not initialized for cluster"), + expectedErr: errors.New("op=Event type=DestinationRule name=working-vs-1 cluster=testdep-cluster-1-k8s message=remote controller not initialized for cluster"), }, { name: "Given destination controller for a given cluster is not initialized," + @@ -2209,7 +2209,7 @@ func TestHandleDestinationRuleEvent(t *testing.T) { destinationRule: workingDR1, handler: &nonWorkingDestinationRuleHandlerForCluster2, event: 0, - expectedErr: errors.New("op=Event type=DestinationRule name=working-vs-1 cluster=dep-cluster-1-k8s message=DestinationRule controller not initialized for cluster"), + expectedErr: errors.New("op=Event type=DestinationRule name=working-vs-1 cluster=testdep-cluster-1-k8s message=DestinationRule controller not initialized for cluster"), }, }