Skip to content

Commit a09b987

Browse files
committed
Update temp_test_sqlserver.rb
1 parent b77048b commit a09b987

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/cases/temp_test_sqlserver.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ class TempTestSQLServer < ActiveRecord::TestCase
1717
arunit2_database = arunit2_connection.pool.db_config.database
1818

1919
sql = <<~SQL
20-
INSERT INTO #{arunit2_database}.dbo.dogs(id) SELECT id FROM #{arunit_database}.dbo.dogs
20+
INSERT INTO #{arunit2_database}.dbo.dogs(id) SELECT id FROM #{arunit_database}.dbo.dogs (NOLOCK)
2121
SQL
2222

2323
OtherDog.destroy_all
2424

2525
assert Dog.count, 1
2626
assert OtherDog.count, 0
2727

28-
Dog.transaction do
29-
OtherDog.transaction do
28+
# Dog.transaction do
29+
# OtherDog.transaction do
3030
assert_nothing_raised do
3131
arunit_connection.execute(sql)
3232
end
33-
end
34-
end
33+
# end
34+
# end
3535

3636
assert Dog.count, 1
3737
assert OtherDog.count, 1

0 commit comments

Comments
 (0)