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:
Sam Saffron
2019-11-26 16:39:14 +11:00
parent e0199e8094
commit ebc82eb63e
2 changed files with 10 additions and 10 deletions

View File

@ -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