Small bump up to hook time to get more consistent test results.

This commit is contained in:
Jack Walker
2020-04-28 12:40:59 +10:00
parent b0f6f02cb6
commit d3db1d5407
4 changed files with 4 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ RSpec.describe 'AutoRunEngine Test', :run_on_browserstack => true do
@driver.navigate.to "#{VICTIM_URL}"
# Give time for browser hook to occur
sleep 3
sleep 3.5
@hooks = JSON.parse(RestClient.get "#{RESTAPI_HOOKS}?token=#{@token}")
@session = @hooks['hooked-browsers']['online']['0']['session']

View File

@@ -90,7 +90,7 @@ RSpec.describe 'Browser Details Handler', :run_on_browserstack => true do
@driver.navigate.to "#{VICTIM_URL}"
# Give time for browser hook to occur
sleep 3
sleep 3.5
@hooks = JSON.parse(RestClient.get "#{RESTAPI_HOOKS}?token=#{@token}")
@session = @hooks['hooked-browsers']['online']['0']['session']

View File

@@ -77,7 +77,7 @@ RSpec.describe 'BeEF WebSockets: Browser Hooking', :run_on_browserstack => true
puts @driver.current_url
# Give time for browser hook to occur
sleep 3
sleep 3.5
end
after(:all) do

View File

@@ -89,7 +89,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
@driver.navigate.to "#{VICTIM_URL}"
# Give time for browser hook to occur
sleep 3
sleep 3.5
@hooks = JSON.parse(RestClient.get "#{RESTAPI_HOOKS}?token=#{@token}")
@session = @hooks['hooked-browsers']['online']['0']['session']