Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu committed Feb 29, 2024
1 parent daca503 commit a5b423b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions op-node/rollup/derive/channel_out_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ func TestOutputFrameNoEmptyLastFrame(t *testing.T) {
txCount := 1
singularBatch := RandomSingularBatch(rng, txCount, chainID)

writen, err := cout.AddSingularBatch(singularBatch, 0)
written, err := cout.AddSingularBatch(singularBatch, 0)
require.NoError(t, err)

require.NoError(t, cout.Close())

var buf bytes.Buffer
// Output a frame which needs exactly `writen` bytes. This frame is expected to be the last frame.
_, err = cout.OutputFrame(&buf, writen+FrameV0OverHeadSize)
// Output a frame which needs exactly `written` bytes. This frame is expected to be the last frame.
_, err = cout.OutputFrame(&buf, written+FrameV0OverHeadSize)
require.ErrorIs(t, err, io.EOF)

}
Expand Down

0 comments on commit a5b423b

Please sign in to comment.