summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/sample_test.rb3
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)