mirror of
https://github.com/FiloSottile/age.git
synced 2026-03-11 08:55:41 +00:00
internal/stream: remove unused variable from testRoundTrip (#396)
This commit is contained in:
parent
299ec50c32
commit
f7fcbef542
1 changed files with 0 additions and 4 deletions
|
|
@ -79,10 +79,6 @@ func testRoundTrip(t *testing.T, stepSize, length int) {
|
|||
n = 0
|
||||
readBuf := make([]byte, stepSize)
|
||||
for n < length {
|
||||
b := length - n
|
||||
if b > stepSize {
|
||||
b = stepSize
|
||||
}
|
||||
nn, err := r.Read(readBuf)
|
||||
if err != nil {
|
||||
t.Fatalf("Read error at index %d: %v", n, err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue