mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
DEV: Enable concurrent system tests (#19632)
Currently the `turbo:spec` task will fail when encountering system tests as Capypara tries to use the same port for each process. This simple change uses the same strategy as for databases, by just incrementing the port number by `TEST_ENV_NUMBER` for each process.
This commit is contained in:
parent
070eac16a8
commit
462e14e279
@ -249,7 +249,7 @@ RSpec.configure do |config|
|
||||
|
||||
Capybara.configure do |capybara_config|
|
||||
capybara_config.server_host = "localhost"
|
||||
capybara_config.server_port = 31337
|
||||
capybara_config.server_port = 31337 + ENV['TEST_ENV_NUMBER'].to_i
|
||||
end
|
||||
|
||||
chrome_browser_options = Selenium::WebDriver::Chrome::Options.new(
|
||||
|
Loading…
Reference in New Issue
Block a user