Commit 62ff7c7
committed
test(postgres): tolerate expected errors in corrupted-payload tests
Tests 3 and 4 in 41_corrupted_payload.sql and the post-alter apply in
46_schema_hash_mismatch.sql intentionally feed garbage to
cloudsync_payload_apply at the top level and verify the table state
is unchanged. With ON_ERROR_STOP now enabled in CI, these expected
errors aborted the run.
Wrap each intentional-error call in \set ON_ERROR_STOP off / on so
psql keeps going while the integrity assertions below still execute.
Drop the psql:.*ERROR arm of the workflow grep — ON_ERROR_STOP and
the [FAIL] grep already cover unexpected failures, and the dropped
arm would false-positive on the now-tolerated stderr lines.1 parent 4366ace commit 62ff7c7
3 files changed
Lines changed: 10 additions & 7 deletions
File tree
- .github/workflows
- test/postgresql
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| 100 | + | |
| 101 | + | |
98 | 102 | | |
99 | | - | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
0 commit comments