Commit a4ceb64e authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Thomas Gambier

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

Order of files does not matter for the assertion.
parent b92b2d36
...@@ -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