Commit 472cc560 authored by Andreas Bigger's avatar Andreas Bigger

nit fixes

parent 6122ef6e
...@@ -36,14 +36,10 @@ func TestOutputFrameSmallMaxSize(t *testing.T) { ...@@ -36,14 +36,10 @@ func TestOutputFrameSmallMaxSize(t *testing.T) {
cout, err := NewChannelOut() cout, err := NewChannelOut()
require.NoError(t, err) require.NoError(t, err)
// Set the channel out frame details
cout.id = ChannelID{0x01}
cout.frame = 0
// Call OutputFrame with the range of small max size values that err // Call OutputFrame with the range of small max size values that err
w := bytes.NewBuffer([]byte{}) var w bytes.Buffer
for i := 0; i < 23; i++ { for i := 0; i < 23; i++ {
fid, err := cout.OutputFrame(w, uint64(i)) fid, err := cout.OutputFrame(&w, uint64(i))
require.ErrorIs(t, err, ErrMaxFrameSizeTooSmall) require.ErrorIs(t, err, ErrMaxFrameSizeTooSmall)
require.Zero(t, fid) require.Zero(t, fid)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment