From 761b5541b645bc1863b71008d6856eb1d2d46806 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Mon, 9 Mar 2015 15:52:27 -0600 Subject: [PATCH] Fix intermittent test failures The table is being modified in tests, without reloading the column information on the appropriate class. This is leading to incorrect column information in many cases. The failures fixed by this commit can be replicated with: ARCONN=postgresql ruby -Itest test/cases/adapters/postgresql/hstore_test.rb --seed 21574 --- activerecord/test/cases/adapters/postgresql/hstore_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activerecord/test/cases/adapters/postgresql/hstore_test.rb b/activerecord/test/cases/adapters/postgresql/hstore_test.rb index e6835031c3..ad9dd311a6 100644 --- a/activerecord/test/cases/adapters/postgresql/hstore_test.rb +++ b/activerecord/test/cases/adapters/postgresql/hstore_test.rb @@ -27,6 +27,7 @@ def setup t.hstore 'settings' end end + Hstore.reset_column_information @column = Hstore.columns_hash['tags'] @type = Hstore.type_for_attribute("tags") end