Przeglądaj źródła

testing: shorten some more tests

R=rsc
CC=golang-dev
https://golang.org/cl/4314044
tls13
Rob Pike 13 lat temu
rodzic
commit
dc6468fcf1
1 zmienionych plików z 5 dodań i 1 usunięć
  1. +5
    -1
      handshake_messages_test.go

+ 5
- 1
handshake_messages_test.go Wyświetl plik

@@ -34,7 +34,11 @@ func TestMarshalUnmarshal(t *testing.T) {
for i, iface := range tests {
ty := reflect.NewValue(iface).Type()

for j := 0; j < 100; j++ {
n := 100
if testing.Short() {
n = 5
}
for j := 0; j < n; j++ {
v, ok := quick.Value(ty, rand)
if !ok {
t.Errorf("#%d: failed to create value", i)


Ładowanie…
Anuluj
Zapisz