Flaky spec: Tenants Create Tenant with subdomain
javierm opened this issue · comments
References
- This test, which is in the
spec/system/admin/tenants_spec.rb
file, has failed a few times, like in our test run 5080 job 3 (see the test run 5080 job log), which run on commit af618ea, or our test run 5130 job 3 (see the test run 5130 job log), which run on commit e3bf1b3.
Failure
1) Tenants Create Tenant with subdomain
Failure/Error:
raise TenantNotFound, <<~EXCEPTION_MESSAGE
Could not set search path to schemas, they may be invalid: "#{tenant}" #{full_search_path}.
Original error: #{exception.class}: #{exception}
EXCEPTION_MESSAGE
Apartment::TenantNotFound:
Could not set search path to schemas, they may be invalid: "earth" "public", "shared_extensions".
Original error: ActiveRecord::StatementInvalid: Could not find schema earth
(...)
# ActiveRecord::StatementInvalid:
# Could not find schema earth
# /home/runner/work/consul/consul/vendor/bundle/ruby/3.0.0/gems/ros-apartment-2.11.0/lib/apartment/adapters/postgresql_adapter.rb:75:in `connect_to_new'