forked from quic-go/quic-go
stop using math/rand.Seed and Read in tests, bump go.mod version to 1.20 (#3936)
This commit is contained in:
@@ -4,11 +4,12 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"sort"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"golang.org/x/exp/rand"
|
||||
|
||||
"github.com/quic-go/quic-go/internal/protocol"
|
||||
"github.com/quic-go/quic-go/internal/wire"
|
||||
|
||||
@@ -410,7 +411,7 @@ var _ = Describe("Streams Map (outgoing)", func() {
|
||||
|
||||
Context("randomized tests", func() {
|
||||
It("opens streams", func() {
|
||||
rand.Seed(GinkgoRandomSeed())
|
||||
rand.Seed(uint64(GinkgoRandomSeed()))
|
||||
const n = 100
|
||||
fmt.Fprintf(GinkgoWriter, "Opening %d streams concurrently.\n", n)
|
||||
|
||||
@@ -461,7 +462,7 @@ var _ = Describe("Streams Map (outgoing)", func() {
|
||||
})
|
||||
|
||||
It("opens streams, when some of them are getting canceled", func() {
|
||||
rand.Seed(GinkgoRandomSeed())
|
||||
rand.Seed(uint64(GinkgoRandomSeed()))
|
||||
const n = 100
|
||||
fmt.Fprintf(GinkgoWriter, "Opening %d streams concurrently.\n", n)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user