@@ -330,27 +330,27 @@ BROKEN:
330
330
[[ $GLOBAL_SUBJECT == " message 3" ]]
331
331
}
332
332
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 "
335
335
[ " $status " -eq $ERROR_HEADER_LENGTH ]
336
336
}
337
337
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 "
340
340
[ " $status " -eq $ERROR_HEADER_LENGTH ]
341
341
}
342
342
343
343
@test " header length cannot be more than 150 with spaces. overriden" {
344
344
GLOBAL_MAX_LENGTH=150 validate_header_length " 012345678 012345678 012345678 012345678 012345678 012345678 012345678 1"
345
345
}
346
346
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 "
349
349
[ " $status " -eq 0 ]
350
350
}
351
351
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 "
354
354
[ " $status " -eq 0 ]
355
355
}
356
356
@@ -570,7 +570,7 @@ plop'
570
570
}
571
571
572
572
@test " overall validation invalid header length" {
573
- MESSAGE=' feat(plop): 01234567890123456789012345678901234567890123456789012345678901234567890 '
573
+ MESSAGE=' feat(plop): 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 '
574
574
575
575
run validate " $MESSAGE "
576
576
[[ " $status " -eq $ERROR_HEADER_LENGTH ]]
0 commit comments