@@ -330,27 +330,27 @@ BROKEN:
330330 [[ $GLOBAL_SUBJECT == " message 3" ]]
331331}
332332
333- @test " header length cannot be more than 70 " {
334- run validate_header_length " 01234567890123456789012345678901234567890123456789012345678901234567891 "
333+ @test " header length cannot be more than 100 " {
334+ run validate_header_length " 01234567890123456789012345678901234567890123456789012345678901234567891234567890123456789012345678901 "
335335 [ " $status " -eq $ERROR_HEADER_LENGTH ]
336336}
337337
338- @test " header length cannot be more than 70 with spaces" {
339- run validate_header_length " 012345678 012345678 012345678 012345678 012345678 012345678 012345678 1 "
338+ @test " header length cannot be more than 100 with spaces" {
339+ run validate_header_length " 012345678 012345678 012345678 012345678 012345678 012345678 012345678 123456789 0123456789 0123456789 "
340340 [ " $status " -eq $ERROR_HEADER_LENGTH ]
341341}
342342
343343@test " header length cannot be more than 150 with spaces. overriden" {
344344 GLOBAL_MAX_LENGTH=150 validate_header_length " 012345678 012345678 012345678 012345678 012345678 012345678 012345678 1"
345345}
346346
347- @test " header length can be 70 " {
348- run validate_header_length " 0123456789012345678901234567890123456789012345678901234567890123456789 "
347+ @test " header length can be 100 " {
348+ run validate_header_length " 0123456789012345678901234567890123456789012345678901234567890123456789123456789012345678901234567890 "
349349 [ " $status " -eq 0 ]
350350}
351351
352- @test " header length can be 70 with spaces" {
353- run validate_header_length " 012345678 012345678 012345678 012345678 012345678 012345678 012345678 "
352+ @test " header length can be 100 with spaces" {
353+ run validate_header_length " 012345678 012345678 012345678 012345678 012345678 012345678 012345678 123456789 0123456789 01234567 "
354354 [ " $status " -eq 0 ]
355355}
356356
@@ -570,7 +570,7 @@ plop'
570570}
571571
572572@test " overall validation invalid header length" {
573- MESSAGE=' feat(plop): 01234567890123456789012345678901234567890123456789012345678901234567890 '
573+ MESSAGE=' feat(plop): 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 '
574574
575575 run validate " $MESSAGE "
576576 [[ " $status " -eq $ERROR_HEADER_LENGTH ]]
0 commit comments