mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 13:43:51 +08:00
848af05537
We are seeing the following error on CI: ``` Errno::EADDRNOTAVAIL: Failed to open TCP connection to localhost:31337 (Cannot assign requested address - connect(2) for "localhost" port 31337) ``` This is because the job being enqueued makes a HTTP request to the Rails server but Capybara doesn't start the Rails server until a session is actually required. Therefore, we need to enqueue the job after we are sure that a session has been started. |
||
---|---|---|
.. | ||
user_spec.rb |