Commit fc08d8a
committed
fix(test): flaky test_truncate_tables_with_query_cache
This fixes a bug where our `TestRetryHelper` logic combined
with `reset_fixtures` trying to reset a table without foreign
keys from another table.
It would first crash, removing the foreign key constraint (due
to how we handle `disable_referential_integrity`). And then pass,
since the foreign key constraint is gone. But we need that
constraint in later tests.1 parent dbc3bc4 commit fc08d8a
File tree
3 files changed
+21
-1
lines changed- test
- excludes
- ActiveRecord
- support
3 files changed
+21
-1
lines changedLines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
0 commit comments