mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
TST: standardise output format on Time mismatch test
This commit is contained in:
parent
8e467437b2
commit
cb61fcd326
1 changed files with 2 additions and 1 deletions
|
|
@ -115,7 +115,8 @@ def testSampleRegexsFactory(name):
|
|||
faildata.get("time", None), "%Y-%m-%dT%H:%M:%S")
|
||||
|
||||
self.assertEqual(fail2banTime, jsonTime,
|
||||
"Time mismatch %s != %s on %s:" % ( fail2banTime, jsonTime, line ) )
|
||||
"Time mismatch %s != %s on: %s:%i %r:" %
|
||||
(fail2banTime, jsonTime, logFile.filename(), logFile.filelineno(), line ) )
|
||||
|
||||
regexsUsed.add(failregex)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue