Skip to content

Commit

Permalink
Test fix (#280)
Browse files Browse the repository at this point in the history
* Test fix

* Fix handler test
  • Loading branch information
Punakshi Chaand authored and GitHub Enterprise committed Mar 30, 2023
1 parent a7b2fba commit 94b2344
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions admiral/pkg/clusters/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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," +
Expand All @@ -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"),
},
}

Expand Down

0 comments on commit 94b2344

Please sign in to comment.