From e7fa12e45bfec19aaa14986a67e9853f178366f1 Mon Sep 17 00:00:00 2001 From: Oren Date: Sun, 1 Dec 2024 10:28:10 +0200 Subject: [PATCH] use lavaslices instead of slices --- .../provideroptimizer/provider_optimizer_refactor_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/provideroptimizer/provider_optimizer_refactor_test.go b/protocol/provideroptimizer/provider_optimizer_refactor_test.go index 505cd3fdc4..085f6b2ead 100644 --- a/protocol/provideroptimizer/provider_optimizer_refactor_test.go +++ b/protocol/provideroptimizer/provider_optimizer_refactor_test.go @@ -1,13 +1,13 @@ package provideroptimizer import ( - "slices" "strconv" "testing" "time" "cosmossdk.io/math" "github.com/lavanet/lava/v4/utils" + "github.com/lavanet/lava/v4/utils/lavaslices" "github.com/lavanet/lava/v4/utils/rand" spectypes "github.com/lavanet/lava/v4/x/spec/types" "github.com/stretchr/testify/require" @@ -831,7 +831,7 @@ func TestProviderOptimizerRetriesWithReducedProvidersSet(t *testing.T) { highStakeProviderIndexes := []int{1, 3, 5} weights := map[string]int64{} for i := 0; i < providersCount; i++ { - if slices.Contains(highStakeProviderIndexes, i) { + if lavaslices.Contains(highStakeProviderIndexes, i) { weights[providersGen.providersAddresses[i]] = highStake } else { weights[providersGen.providersAddresses[i]] = normalStake