Commit 99e59aef authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Matevz Golob

fix "caddy-frontend: Test bin/trafficserver-logrotate utility"

Order of files does not matter for the assertion.
parent 8be09a2c
...@@ -1265,8 +1265,8 @@ http://apachecustomhttpsaccepted.example.com:%%(http_port)s { ...@@ -1265,8 +1265,8 @@ http://apachecustomhttpsaccepted.example.com:%%(http_port)s {
self.assertEqual(0, result) self.assertEqual(0, result)
self.assertEqual( self.assertEqual(
['log-old.old.xz', 'log-older.old.xz'], set(['log-old.old.xz', 'log-older.old.xz']),
os.listdir(ats_logrotate_dir)) set(os.listdir(ats_logrotate_dir)))
self.assertFalse(old_file_name + '.xz' in os.listdir(ats_log_dir)) self.assertFalse(old_file_name + '.xz' in os.listdir(ats_log_dir))
self.assertFalse(older_file_name + '.xz' in os.listdir(ats_log_dir)) self.assertFalse(older_file_name + '.xz' in os.listdir(ats_log_dir))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment