This commit is contained in:
Patricio Whittingslow
2026-08-24 22:03:42 -03:00
parent c879d0497c
commit 56f943ed30
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -31,10 +31,10 @@ func TestHandlerStreamIntegrityUnderReorder(t *testing.T) {
var want, got []byte
rb := make([]byte, mtu)
letter := byte('A')
for round := 0; round < rounds; round++ {
for round := range rounds {
// Capture this round's segments on the wire, one segment per write.
segs := make([][]byte, 0, nsegs)
for i := 0; i < nsegs; i++ {
for range nsegs {
payload := make([]byte, segSize)
for j := range payload {
payload[j] = letter
+1 -1
View File
@@ -1216,7 +1216,7 @@ func TestEphemeralPortSequence(t *testing.T) {
}
const cycle = 16384
var seen [cycle]bool
for i := 0; i < cycle; i++ {
for i := range cycle {
port := s.ephemeralPort()
if port < 49152 {
t.Fatalf("port %d below dynamic range (RFC 6335)", port)