diff options
author | azul <azul@riseup.net> | 2017-07-24 08:01:49 +0000 |
---|---|---|
committer | azul <azul@riseup.net> | 2017-07-24 08:01:49 +0000 |
commit | cfa6395c7e5728de02221b94b5f9cfe8a4debf09 (patch) | |
tree | 3af199e7751de58db2ed030300b24f52fb7813ef /test/functional | |
parent | 8c998a12187bebe744a29092ca65d65b1f390529 (diff) | |
parent | 416a410a5bc3f78ff63205caa08281743892f023 (diff) |
Merge branch 'test/fd-count-tweak' into 'master'
minor: tweak file descriptor count test
See merge request !14
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/sample_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/sample_test.rb b/test/functional/sample_test.rb index 5886349..68127e1 100644 --- a/test/functional/sample_test.rb +++ b/test/functional/sample_test.rb @@ -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) |