Update Rspec expected thread count

When REMOTE_DB is set there is a thread for the web service, in
addition to the External modules thread manager, so there is one or two
threads by the end of the test run in addition to the main VM thread.
This commit is contained in:
Matthew Kienow 2019-01-09 23:56:16 -05:00
parent 5e28bccda9
commit c3f71a1692
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module Metasploit
#
# Number of allowed threads when threads are counted in `after(:suite)` or `before(:suite)`
EXPECTED_THREAD_COUNT_AROUND_SUITE = 2
EXPECTED_THREAD_COUNT_AROUND_SUITE = ENV['REMOTE_DB'] ? 3 : 2
# `caller` for all Thread.new calls
LOG_PATHNAME = Pathname.new('log/metasploit/framework/spec/threads/suite.log')