@@ -11,13 +11,13 @@ func TestLineValidAcceptsNew(t *testing.T) {
1111 test .AssertNotError (t , err , "errored on valid checksum" )
1212}
1313
14- func TestLineValidAcceptsOld (t * testing.T ) {
14+ func TestLineValidRejectsOld (t * testing.T ) {
1515 err := lineValid ("2020-07-06T18:07:43.109389+00:00 70877f679c72 datacenter 6 boulder-wfe[1595]: kKG6cwA Caught SIGTERM" )
16- test .AssertNotError (t , err , "errored on valid old checksum" )
16+ test .AssertError (t , err , "didn't error on old checksum format " )
1717}
1818
1919func TestLineValidRejects (t * testing.T ) {
20- err := lineValid ("2020-07-06T18:07:43.109389+00:00 70877f679c72 datacenter 6 boulder-wfe[1595]: xxxxxxx Caught SIGTERM" )
20+ err := lineValid ("2020-07-06T18:07:43.109389+00:00 70877f679c72 datacenter 6 boulder-wfe[1595]: xxxxxx Caught SIGTERM" )
2121 test .AssertError (t , err , "didn't error on invalid checksum" )
2222}
2323
@@ -28,10 +28,10 @@ func TestLineValidRejectsNotAChecksum(t *testing.T) {
2828}
2929
3030func TestLineValidNonOurobouros (t * testing.T ) {
31- err := lineValid ("2020-07-06T18:07:43.109389+00:00 70877f679c72 datacenter 6 boulder-wfe[1595]: xxxxxxx Caught SIGTERM" )
31+ err := lineValid ("2020-07-06T18:07:43.109389+00:00 70877f679c72 datacenter 6 boulder-wfe[1595]: xxxxxx Caught SIGTERM" )
3232 test .AssertError (t , err , "didn't error on invalid checksum" )
3333
34- selfOutput := "2020-07-06T18:07:43.109389+00:00 70877f679c72 datacenter 6 log-validator[1337]: xxxxxxx " + err .Error ()
34+ selfOutput := "2020-07-06T18:07:43.109389+00:00 70877f679c72 datacenter 6 log-validator[1337]: xxxxxx " + err .Error ()
3535 err2 := lineValid (selfOutput )
3636 test .AssertNotError (t , err2 , "expected no error when feeding lineValid's error output into itself" )
3737}
0 commit comments