Skip to content

Commit

Permalink
fix CI issues
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <[email protected]>
  • Loading branch information
NikitaSkrynnik committed Nov 12, 2024
1 parent 38888bb commit 13adb29
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/networkservice/chains/nsmgr/heal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 = ""
}))

Expand All @@ -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)
}

0 comments on commit 13adb29

Please sign in to comment.