mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
fix slice copy in 1.20 (#13389)
The slices package is added to the standard library in Go 1.21; we need to import from the exp area to maintain compatibility with Go 1.20. Signed-off-by: tyltr <tylitianrui@126.com>
This commit is contained in:
parent
72a8f1084b
commit
1fa131ee03
|
@ -15,10 +15,10 @@ package histogram
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
||||||
"slices"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
"golang.org/x/exp/slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetBound(t *testing.T) {
|
func TestGetBound(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue