DEV: Set uploads_id_seq starting point before tests (#15215)
Some tests don't pass when this is elevated. They should be fixed, since, at some point, we may create enough uploads during tests that they fail naturally.
This commit is contained in:
parent
6e8df3d66b
commit
95c75d3f4f
|
@ -235,6 +235,12 @@ RSpec.configure do |config|
|
|||
SiteSetting.provider = TestLocalProcessProvider.new
|
||||
|
||||
WebMock.disable_net_connect!
|
||||
|
||||
if ENV['ELEVATED_UPLOADS_ID']
|
||||
DB.exec "SELECT setval('uploads_id_seq', 10000)"
|
||||
else
|
||||
DB.exec "SELECT setval('uploads_id_seq', 1)"
|
||||
end
|
||||
end
|
||||
|
||||
class TestLocalProcessProvider < SiteSettings::LocalProcessProvider
|
||||
|
|
Loading…
Reference in New Issue