@@ -255,7 +255,7 @@ func TestLBBackend(t *testing.T) {
255255 code : `* -> <"https://example.org">` ,
256256 expectedResult : []* Route {{
257257 BackendType : LBBackend ,
258- LBEndpoints : []string { "https://example.org" },
258+ LBEndpoints : []* LBEndpoint {{ Address : "https://example.org" } },
259259 }},
260260 }, {
261261 title : "multiple endpoints, default algorithm" ,
@@ -264,10 +264,10 @@ func TestLBBackend(t *testing.T) {
264264 "https://example3.org">` ,
265265 expectedResult : []* Route {{
266266 BackendType : LBBackend ,
267- LBEndpoints : []string {
268- "https://example1.org" ,
269- "https://example2.org" ,
270- "https://example3.org" ,
267+ LBEndpoints : []* LBEndpoint {
268+ { Address : "https://example1.org" } ,
269+ { Address : "https://example2.org" } ,
270+ { Address : "https://example3.org" } ,
271271 },
272272 }},
273273 }, {
@@ -276,7 +276,7 @@ func TestLBBackend(t *testing.T) {
276276 expectedResult : []* Route {{
277277 BackendType : LBBackend ,
278278 LBAlgorithm : "algFoo" ,
279- LBEndpoints : []string { "https://example.org" },
279+ LBEndpoints : []* LBEndpoint {{ Address : "https://example.org" } },
280280 }},
281281 }, {
282282 title : "multiple endpoints, default algorithm" ,
@@ -287,10 +287,10 @@ func TestLBBackend(t *testing.T) {
287287 expectedResult : []* Route {{
288288 BackendType : LBBackend ,
289289 LBAlgorithm : "algFoo" ,
290- LBEndpoints : []string {
291- "https://example1.org" ,
292- "https://example2.org" ,
293- "https://example3.org" ,
290+ LBEndpoints : []* LBEndpoint {
291+ { Address : "https://example1.org" } ,
292+ { Address : "https://example2.org" } ,
293+ { Address : "https://example3.org" } ,
294294 },
295295 }},
296296 }, {
@@ -303,10 +303,10 @@ func TestLBBackend(t *testing.T) {
303303 Filters : []* Filter {{Name : "foo" }},
304304 BackendType : LBBackend ,
305305 LBAlgorithm : "algFoo" ,
306- LBEndpoints : []string {
307- "https://example1.org" ,
308- "https://example2.org" ,
309- "https://example3.org" ,
306+ LBEndpoints : []* LBEndpoint {
307+ { Address : "https://example1.org" } ,
308+ { Address : "https://example2.org" } ,
309+ { Address : "https://example3.org" } ,
310310 },
311311 }},
312312 }} {
0 commit comments