Skip to content
Snippets Groups Projects
Unverified Commit 416a410a authored by azul's avatar azul
Browse files

minor: tweak file descriptor count test

parent 8c998a12
No related branches found
No related tags found
1 merge request!14minor: tweak file descriptor count test
Pipeline #
......@@ -29,6 +29,7 @@ class SampleTest < FunctionalTest
before = open_files_count
lookup 'test@mail.bitmask.net'
assert_equal before, open_files_count, 'Filedescriptors leaked'
assert (before > 0), 'Could not get filedescriptor count'
end
protected
......@@ -46,7 +47,7 @@ class SampleTest < FunctionalTest
end
def open_files_count
`lsof | grep " #{nickserver_pid} " | wc -l`.to_i
run_command(%Q(lsof | grep " #{nickserver_pid} " | wc -l)).to_i
end
def run_command(command)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment