Revert "GCE: Allow nodes to exceed target pool maximums"

This reverts commit faf0c44429.
This commit is contained in:
Zach Loafman
2016-06-13 09:49:10 -07:00
parent dd4dae4a57
commit ebc65f1dd3
4 changed files with 26 additions and 211 deletions

View File

@@ -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} {