Skip to content

Commit bd76073

Browse files
committed
seems like something is up with skipped tests
1 parent 309cb48 commit bd76073

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ jobs:
8888
done
8989
cat ${{ github.workspace }}/setup.sql | cockroach sql --insecure
9090
- name: Test
91-
run: bundle exec rake test TESTOPTS='--profile=5'
91+
run: bundle exec rake test TESTOPTS='--profile=5 --verbose'

lib/active_record/connection_adapters/cockroachdb/database_statements.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,13 @@ def insert_fixtures_set(fixture_set, tables_to_delete = [])
2323
fixture_inserts = build_fixture_statements(fixture_set)
2424
table_deletes = tables_to_delete.map { |table| "DELETE FROM #{quote_table_name(table)}" }
2525
statements = table_deletes + fixture_inserts
26-
if !defined?($total)
27-
$total = 0
28-
$success = 0
29-
at_exit do
30-
puts "Skipping disable stat\nTotal: #{$total}, Success: #{$success} (#{($success.to_f / $total * 100).round(2)}%)"
31-
end
32-
end
3326

34-
$total += 1
3527
begin # much faster without disabling referential integrity, worth trying.
3628
transaction(requires_new: true) do
3729
execute_batch(statements, "Fixtures Load")
3830
end
39-
$success += 1
4031
rescue
41-
print "X"
32+
print "X" * 100
4233
disable_referential_integrity do
4334
execute_batch(statements, "Fixtures Load")
4435
end

0 commit comments

Comments
 (0)