From 13adb295ee1292a4751cc5b59ef64b6ffbc09381 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Tue, 12 Nov 2024 16:12:02 +1100 Subject: [PATCH] fix CI issues Signed-off-by: NikitaSkrynnik --- pkg/networkservice/chains/nsmgr/heal_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/networkservice/chains/nsmgr/heal_test.go b/pkg/networkservice/chains/nsmgr/heal_test.go index 0c6f9f8bb..01bc6c3cc 100644 --- a/pkg/networkservice/chains/nsmgr/heal_test.go +++ b/pkg/networkservice/chains/nsmgr/heal_test.go @@ -48,8 +48,10 @@ import ( ) const ( - tick = 10 * time.Millisecond - timeout = 10 * time.Second + tick = 10 * time.Millisecond + timeout = 10 * time.Second + labelKey = "key" + labelValue = "value" ) func TestNSMGR_HealEndpoint(t *testing.T) { @@ -933,7 +935,7 @@ func TestNSMGRHealEndpoint_CustomReselectFunc(t *testing.T) { nsclient.WithReselectFunc( func(request *networkservice.NetworkServiceRequest) { request.Connection.Labels = make(map[string]string) - request.Connection.Labels["key"] = "value" + request.Connection.Labels[labelKey] = labelValue request.Connection.NetworkServiceEndpointName = "" })) @@ -949,6 +951,6 @@ func TestNSMGRHealEndpoint_CustomReselectFunc(t *testing.T) { require.Eventually(t, func() bool { resp, err := nsc.Request(ctx, request.Clone()) - return err == nil && resp.Labels["key"] == "value" + return err == nil && resp.Labels[labelKey] == labelValue }, timeout, tick) }