@@ -347,9 +347,10 @@ func TestLeastConnectionsSelector_DifferentURLFormats(t *testing.T) {
347347 t .Run (tc .name , func (t * testing.T ) {
348348 testURL , _ := url .Parse (tc .url )
349349 endpoint := & domain.Endpoint {
350- Name : tc .name ,
351- URL : testURL ,
352- Status : domain .StatusHealthy ,
350+ Name : tc .name ,
351+ URL : testURL ,
352+ URLString : testURL .String (),
353+ Status : domain .StatusHealthy ,
353354 }
354355
355356 // Test connection tracking with different URL formats
@@ -375,12 +376,14 @@ func createTestEndpoint(name string, port int, status domain.EndpointStatus) *do
375376 testURL , _ := url .Parse (fmt .Sprintf ("http://localhost:%d" , port ))
376377 healthURL , _ := url .Parse (fmt .Sprintf ("http://localhost:%d/health" , port ))
377378 return & domain.Endpoint {
378- Name : name ,
379- URL : testURL ,
380- HealthCheckURL : healthURL ,
381- Status : status ,
382- Priority : 100 ,
383- CheckInterval : 5 * time .Second ,
384- CheckTimeout : 2 * time .Second ,
379+ Name : name ,
380+ URL : testURL ,
381+ URLString : testURL .String (),
382+ HealthCheckURL : healthURL ,
383+ HealthCheckURLString : healthURL .String (),
384+ Status : status ,
385+ Priority : 100 ,
386+ CheckInterval : 5 * time .Second ,
387+ CheckTimeout : 2 * time .Second ,
385388 }
386389}
0 commit comments