@@ -60,14 +60,14 @@ func (s) TestResourceResolverOneEDSResource(t *testing.T) {
60
60
}{
61
61
{name : "watch EDS" ,
62
62
clusterName : testClusterName ,
63
- edsName : testEDSServcie ,
64
- wantName : testEDSServcie ,
63
+ edsName : testEDSService ,
64
+ wantName : testEDSService ,
65
65
edsUpdate : testEDSUpdates [0 ],
66
66
want : []priorityConfig {{
67
67
mechanism : DiscoveryMechanism {
68
68
Type : DiscoveryMechanismTypeEDS ,
69
69
Cluster : testClusterName ,
70
- EDSServiceName : testEDSServcie ,
70
+ EDSServiceName : testEDSService ,
71
71
},
72
72
edsResp : testEDSUpdates [0 ],
73
73
childNameGen : newNameGenerator (0 ),
@@ -123,7 +123,7 @@ func (s) TestResourceResolverOneEDSResource(t *testing.T) {
123
123
t .Fatalf ("xdsClient.CancelCDS failed with error: %v" , err )
124
124
}
125
125
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 )
127
127
}
128
128
})
129
129
}
@@ -225,16 +225,16 @@ func (s) TestResourceResolverChangeEDSName(t *testing.T) {
225
225
rr .updateMechanisms ([]DiscoveryMechanism {{
226
226
Type : DiscoveryMechanismTypeEDS ,
227
227
Cluster : testClusterName ,
228
- EDSServiceName : testEDSServcie ,
228
+ EDSServiceName : testEDSService ,
229
229
}})
230
230
ctx , ctxCancel := context .WithTimeout (context .Background (), defaultTestTimeout )
231
231
defer ctxCancel ()
232
232
gotEDSName1 , err := fakeClient .WaitForWatchEDS (ctx )
233
233
if err != nil {
234
234
t .Fatalf ("xdsClient.WatchCDS failed with error: %v" , err )
235
235
}
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 )
238
238
}
239
239
240
240
// Invoke callback, should get an update.
@@ -245,7 +245,7 @@ func (s) TestResourceResolverChangeEDSName(t *testing.T) {
245
245
mechanism : DiscoveryMechanism {
246
246
Type : DiscoveryMechanismTypeEDS ,
247
247
Cluster : testClusterName ,
248
- EDSServiceName : testEDSServcie ,
248
+ EDSServiceName : testEDSService ,
249
249
},
250
250
edsResp : testEDSUpdates [0 ],
251
251
childNameGen : newNameGenerator (0 ),
@@ -266,7 +266,7 @@ func (s) TestResourceResolverChangeEDSName(t *testing.T) {
266
266
t .Fatalf ("xdsClient.CancelCDS failed with error: %v" , err )
267
267
}
268
268
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 )
270
270
}
271
271
gotEDSName2 , err := fakeClient .WaitForWatchEDS (ctx )
272
272
if err != nil {
0 commit comments