Skip to content

Commit

Permalink
switch some exp pkg usage to stable (#10876)
Browse files Browse the repository at this point in the history
* change maps pkg from exp to stable where applicable

* replace exp_rand with crypto_rand
  • Loading branch information
poopoothegorilla authored Oct 6, 2023
1 parent 59cb265 commit 961cc04
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/internal/features/ocr2/features_ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"io"
"maps"
"math/big"
"net/http"
"net/http/httptest"
Expand All @@ -26,7 +27,6 @@ import (
"github.com/smartcontractkit/libocr/gethwrappers2/ocr2aggregator"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/exp/maps"

testoffchainaggregator2 "github.com/smartcontractkit/libocr/gethwrappers2/testocr2aggregator"
confighelper2 "github.com/smartcontractkit/libocr/offchainreporting2plus/confighelper"
Expand Down
2 changes: 1 addition & 1 deletion core/services/blockhashstore/test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package blockhashstore

import (
"context"
"crypto/rand"
"math/big"

"github.com/ethereum/go-ethereum/common"
"github.com/pkg/errors"
"golang.org/x/exp/rand"
)

type TestCoordinator struct {
Expand Down
3 changes: 1 addition & 2 deletions core/services/chainlink/config_general_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ package chainlink
import (
_ "embed"
"fmt"
"maps"
"net/url"
"strings"
"testing"
"time"

maps "golang.org/x/exp/maps"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion core/services/ocr2/plugins/s4/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"crypto/ecdsa"
"fmt"
"maps"
"math/rand"
"testing"
"time"
Expand All @@ -26,7 +27,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/multierr"
"golang.org/x/exp/maps"
)

// Disclaimer: this is not a true integration test, it's more of a S4 feature test, on purpose.
Expand Down

0 comments on commit 961cc04

Please sign in to comment.