summaryrefslogtreecommitdiff
path: root/test/functional/sample_test.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-07-24 08:10:32 +0200
committerAzul <azul@riseup.net>2017-07-24 08:10:32 +0200
commit416a410a5bc3f78ff63205caa08281743892f023 (patch)
tree3af199e7751de58db2ed030300b24f52fb7813ef /test/functional/sample_test.rb
parent8c998a12187bebe744a29092ca65d65b1f390529 (diff)
minor: tweak file descriptor count test
Diffstat (limited to 'test/functional/sample_test.rb')
-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)