Skip to content

Commit

Permalink
use lavaslices instead of slices
Browse files Browse the repository at this point in the history
  • Loading branch information
oren-lava committed Dec 1, 2024
1 parent daba344 commit e7fa12e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e7fa12e

Please sign in to comment.