Other: stuff mostly passes but bodystructure parse is broken?

This commit is contained in:
James Houlahan
2021-05-31 12:56:55 +02:00
committed by Jakub Cuth
parent f6ff85f69d
commit f63238faed
2 changed files with 37 additions and 49 deletions

View File

@ -133,7 +133,7 @@ func section(t *testing.T, b []byte, section ...int) *testSection {
bs, err := NewBodyStructure(bytes.NewReader(b))
require.NoError(t, err)
raw, err := bs.GetSection(bytes.NewReader(b), append([]int{}, section...))
raw, err := bs.GetSection(bytes.NewReader(b), section)
require.NoError(t, err)
return &testSection{