diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb
index <HASH>..<HASH> 100644
--- a/activerecord/test/cases/finder_test.rb
+++ b/activerecord/test/cases/finder_test.rb
@@ -209,7 +209,7 @@ class FinderTest < ActiveRecord::TestCase
   end
 
   def test_model_class_responds_to_first_bang
-    assert_equal topics(:first), Topic.first!
+    assert_equal topics(:first), Topic.order(:id).first!
     assert_raises ActiveRecord::RecordNotFound do
       Topic.delete_all
       Topic.first!
order is not guaranteed by this select, so add an order and call first!