@@ -60,14 +60,14 @@ func (s) TestResourceResolverOneEDSResource(t *testing.T) {
6060 }{
6161 {name : "watch EDS" ,
6262 clusterName : testClusterName ,
63- edsName : testEDSServcie ,
64- wantName : testEDSServcie ,
63+ edsName : testEDSService ,
64+ wantName : testEDSService ,
6565 edsUpdate : testEDSUpdates [0 ],
6666 want : []priorityConfig {{
6767 mechanism : DiscoveryMechanism {
6868 Type : DiscoveryMechanismTypeEDS ,
6969 Cluster : testClusterName ,
70- EDSServiceName : testEDSServcie ,
70+ EDSServiceName : testEDSService ,
7171 },
7272 edsResp : testEDSUpdates [0 ],
7373 childNameGen : newNameGenerator (0 ),
@@ -123,7 +123,7 @@ func (s) TestResourceResolverOneEDSResource(t *testing.T) {
123123 t .Fatalf ("xdsClient.CancelCDS failed with error: %v" , err )
124124 }
125125 if edsNameCanceled != test .wantName {
126- t .Fatalf ("xdsClient.CancelEDS called for %v, want: %v" , edsNameCanceled , testEDSServcie )
126+ t .Fatalf ("xdsClient.CancelEDS called for %v, want: %v" , edsNameCanceled , testEDSService )
127127 }
128128 })
129129 }
@@ -225,16 +225,16 @@ func (s) TestResourceResolverChangeEDSName(t *testing.T) {
225225 rr .updateMechanisms ([]DiscoveryMechanism {{
226226 Type : DiscoveryMechanismTypeEDS ,
227227 Cluster : testClusterName ,
228- EDSServiceName : testEDSServcie ,
228+ EDSServiceName : testEDSService ,
229229 }})
230230 ctx , ctxCancel := context .WithTimeout (context .Background (), defaultTestTimeout )
231231 defer ctxCancel ()
232232 gotEDSName1 , err := fakeClient .WaitForWatchEDS (ctx )
233233 if err != nil {
234234 t .Fatalf ("xdsClient.WatchCDS failed with error: %v" , err )
235235 }
236- if gotEDSName1 != testEDSServcie {
237- t .Fatalf ("xdsClient.WatchEDS called for cluster: %v, want: %v" , gotEDSName1 , testEDSServcie )
236+ if gotEDSName1 != testEDSService {
237+ t .Fatalf ("xdsClient.WatchEDS called for cluster: %v, want: %v" , gotEDSName1 , testEDSService )
238238 }
239239
240240 // Invoke callback, should get an update.
@@ -245,7 +245,7 @@ func (s) TestResourceResolverChangeEDSName(t *testing.T) {
245245 mechanism : DiscoveryMechanism {
246246 Type : DiscoveryMechanismTypeEDS ,
247247 Cluster : testClusterName ,
248- EDSServiceName : testEDSServcie ,
248+ EDSServiceName : testEDSService ,
249249 },
250250 edsResp : testEDSUpdates [0 ],
251251 childNameGen : newNameGenerator (0 ),
@@ -266,7 +266,7 @@ func (s) TestResourceResolverChangeEDSName(t *testing.T) {
266266 t .Fatalf ("xdsClient.CancelCDS failed with error: %v" , err )
267267 }
268268 if edsNameCanceled1 != gotEDSName1 {
269- t .Fatalf ("xdsClient.CancelEDS called for %v, want: %v" , edsNameCanceled1 , testEDSServcie )
269+ t .Fatalf ("xdsClient.CancelEDS called for %v, want: %v" , edsNameCanceled1 , testEDSService )
270270 }
271271 gotEDSName2 , err := fakeClient .WaitForWatchEDS (ctx )
272272 if err != nil {
0 commit comments