protocol: move away from Ginkgo (#4650)

This commit is contained in:
Marten Seemann
2024-09-12 12:39:03 +08:00
committed by GitHub
parent 3f3e12bd7c
commit 196c4bb16b
10 changed files with 365 additions and 415 deletions

View File

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