Merge pull request #1849 from beefproject/fix_tests_to_run_in_random_order
Set the credentials before test runs
This commit is contained in:
@@ -10,6 +10,8 @@ RSpec.describe 'BeEF API Rate Limit' do
|
||||
# Note: rake spec passes --patterns which causes BeEF to pickup this argument via optparse. I can't see a better way at the moment to filter this out. Therefore ARGV=[] for this test.
|
||||
ARGV = []
|
||||
@config = BeEF::Core::Configuration.instance
|
||||
@config.set('beef.credentials.user', "beef")
|
||||
@config.set('beef.credentials.passwd', "beef")
|
||||
http_hook_server = BeEF::Core::Server.instance
|
||||
http_hook_server.prepare
|
||||
@pids = fork do
|
||||
|
||||
Reference in New Issue
Block a user