forked from quic-go/quic-go
protocol: move away from Ginkgo (#4650)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package protocol
|
||||
|
||||
import (
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
var _ = Describe("Parameters", func() {
|
||||
It("can queue more packets in the session than in the 0-RTT queue", func() {
|
||||
Expect(MaxConnUnprocessedPackets).To(BeNumerically(">", Max0RTTQueueLen))
|
||||
Expect(MaxUndecryptablePackets).To(BeNumerically(">", Max0RTTQueueLen))
|
||||
})
|
||||
})
|
||||
func TestPacketQueueCapacities(t *testing.T) {
|
||||
// Ensure that the session can queue more packets than the 0-RTT queue
|
||||
require.Greater(t, MaxConnUnprocessedPackets, Max0RTTQueueLen)
|
||||
require.Greater(t, MaxUndecryptablePackets, Max0RTTQueueLen)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user