Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Aug 28, 2024
1 parent 66183ad commit 7fc7d2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestFECEncodeConsecutive(t *testing.T) {
}

data := make([]byte, payLoad)
duration := time.Duration(rand.Int()%210) * time.Millisecond
duration := time.Duration(rand.Int()%300) * time.Millisecond
t.Logf("Sleep: %v, packet %v", duration, sent)
<-time.After(duration)

Expand All @@ -60,6 +60,8 @@ func TestFECEncodeConsecutive(t *testing.T) {
t.Fatalf("expected parity shard:%v actual seqid %v", expected, seqid)
}
}
} else if sent%dataSize == 0 {
t.Log("no parity:", len(ps))
}
}
}
Expand Down

0 comments on commit 7fc7d2c

Please sign in to comment.