Commit 039eb5d9 authored by Paul Cammish's avatar Paul Cammish
Browse files

Add extra delay to enabling/disabling TLS

parent fede2b35
......@@ -19,14 +19,14 @@ class TestFTP < Test::Unit::TestCase
@domain.create()
# Hack to disable TLS enforcement, as the ruby lib doesnt support it
system 'echo 1 > /etc/pure-ftpd/conf/TLS ; service pure-ftpd restart ; sleep 3'
system 'echo 1 > /etc/pure-ftpd/conf/TLS ; sleep 3 ; service pure-ftpd restart ; sleep 3'
end
def teardown
# Re-enable TLS enforcement
system 'echo 2 > /etc/pure-ftpd/conf/TLS ; service pure-ftpd restart ; sleep 3'
system 'echo 2 > /etc/pure-ftpd/conf/TLS ; sleep 3 ; service pure-ftpd restart ; sleep 3'
#
# Delete the temporary domain
......
Supports Markdown
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