mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
DEV: correct spec failures in PG 12
PG 12 changes internals in a subtle way, time jitter is noticed in a few new spots (which is normal) and default ordering is a bit different which is meant to be random anyway.
This commit is contained in:
@ -15,13 +15,13 @@ describe FreedomPatches::SchemaMigrationDetails do
|
||||
end
|
||||
|
||||
it "logs information on migration" do
|
||||
migration = TestMigration.new("awesome_migration", "20160225050318")
|
||||
migration = TestMigration.new("awesome_migration", "20110225050318")
|
||||
|
||||
ActiveRecord::Base.connection_pool.with_connection do |conn|
|
||||
migration.exec_migration(conn, :up)
|
||||
end
|
||||
|
||||
info = SchemaMigrationDetail.find_by(version: "20160225050318")
|
||||
info = SchemaMigrationDetail.find_by(version: "20110225050318")
|
||||
|
||||
expect(info.duration).to be > 0
|
||||
expect(info.git_version).to eq Discourse.git_version
|
||||
|
Reference in New Issue
Block a user