diff --git a/pkg/website/chunk.go b/pkg/website/chunk.go index a99e46d..3103f50 100644 --- a/pkg/website/chunk.go +++ b/pkg/website/chunk.go @@ -22,5 +22,3 @@ func DivideIntoChunks(data []byte, chunkSize int) [][]byte { return chunks } - -// string => byte arr ==> function ==> assert chunk length diff --git a/pkg/website/chunk_test.go b/pkg/website/chunk_test.go index 97b5030..a242b9f 100644 --- a/pkg/website/chunk_test.go +++ b/pkg/website/chunk_test.go @@ -29,9 +29,9 @@ func TestChunk(t *testing.T) { return } - expectedChunks := (len(test.data) + test.chunkSize - 1) / test.chunkSize + expectedChunkLen := (len(test.data) + test.chunkSize - 1) / test.chunkSize - assert.Equal(t, len(chunks), expectedChunks) + assert.Equal(t, len(chunks), expectedChunkLen) }) }