Skip to content

Commit bfa5262

Browse files
committed
temp: debug authors fks
1 parent 6556100 commit bfa5262

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
- uses: ./.github/actions/test-runner
9191
id: test
9292
with:
93+
TESTOPTS: "--verbose"
9394
crdb: ${{ matrix.crdb }}
9495
ruby: ${{ matrix.ruby }}
9596
env:

test/cases/helper_cockroachdb.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def run_one_method(klass, method_name, reporter)
112112
reporter.prerecord(klass, method_name)
113113
final_res = nil
114114
2.times do
115+
puts "NOPE NOPE" unless ActiveRecord::Base.lease_connection.foreign_keys("authors").any?{
116+
_1.from_table == "authors" && _1.to_table == "author_addresses"
117+
}
115118
res = Minitest.run_one_method(klass, method_name)
116119
final_res ||= res
117120

@@ -122,6 +125,7 @@ def run_one_method(klass, method_name, reporter)
122125
end
123126
end
124127
(final_res = res) && break unless retryable
128+
puts "Retrying..."
125129
end
126130

127131
# report message from first failure or from success

0 commit comments

Comments
 (0)