diff --git a/m/textstyles/ansiTokenizer_test.go b/m/textstyles/ansiTokenizer_test.go index 62d82e1..6d81ad1 100644 --- a/m/textstyles/ansiTokenizer_test.go +++ b/m/textstyles/ansiTokenizer_test.go @@ -61,6 +61,11 @@ func TestTokenize(t *testing.T) { assert.NilError(t, err) fileScanner := bufio.NewScanner(fileReader) + + // Upping the buffer like this (from a default of 64kb) makes the + // tests go faster + fileScanner.Buffer(make([]byte, 1024*1024), 1024*1024) + var lineNumber *linenumbers.LineNumber for fileScanner.Scan() { line := fileScanner.Text()