Commit 3f817f2
authored
fix(test): use unique bridge names and relaxed count assertions (#21966)
* fix(test): use unique bridge names and relaxed count assertions
TestORM_UpdateBridgeType used a hardcoded "UniqueName" and asserted
the global bridge count was exactly 1. With shared DB state from
parallel tests or -count=N, the global count includes other bridges.
Use UUID-based names and assert >= 1 instead of exact count. Verify
deletion by checking the specific bridge is not found.
Fixes: CORE-2391
* fix(test): drop global count assertion, verify specific bridge only
The GreaterOrEqual count check was still fragile. The test only needs
to verify its own bridge exists and can be deleted — not count how
many bridges exist globally.
Fixes: CORE-2391
* fix(test): restore exact count assertions with UUID bridge names
The txdb wrapper should provide per-test transaction isolation, so
exact count assertions are valid. Restore them — if CI fails, the
real bug is broken DB isolation, not the test.
The only change from the original test is UUID-based bridge names
to avoid hardcoded "UniqueName" collisions.
Fixes: CORE-23911 parent cdc60a7 commit 3f817f2
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | | - | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
0 commit comments