mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-12 18:18:51 +00:00
Revert "GCE: Allow nodes to exceed target pool maximums"
This reverts commit faf0c44429
.
This commit is contained in:
@@ -18,8 +18,6 @@ package rand
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@@ -78,17 +76,6 @@ func TestPerm(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestShuffle(t *testing.T) {
|
||||
Seed(5) // Arbitrary RNG seed for deterministic testing.
|
||||
have := []int{0, 1, 2, 3, 4}
|
||||
want := []int{3, 2, 4, 1, 0} // "have" shuffled, with RNG at Seed(5).
|
||||
got := append([]int{}, have...)
|
||||
Shuffle(sort.IntSlice(got))
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
t.Errorf("Shuffle(%v) => %v, want %v", have, got, want)
|
||||
}
|
||||
}
|
||||
|
||||
func TestIntnRange(t *testing.T) {
|
||||
// 0 is invalid.
|
||||
for min, max := range map[int]int{1: 2, 10: 123, 100: 500} {
|
||||
|
Reference in New Issue
Block a user