Commit a128a2e
committed
test: assert the query count does not grow, instead of exact equality
dataElementCountDoesNotScaleQueryCount compares a metadata export with 3
data elements against one with 8 and asserted the two select counts were
equal. With the cache changes in this branch the second export legitimately
issues FEWER selects (21 vs 22): what the first export loaded is still
cached during the second. Assert the invariant the test name and comment
state - the count must not grow - so the test keeps catching a
reintroduced N+1 without failing on a cache improvement.
AI Assisted1 parent 5c5d155 commit a128a2e
1 file changed
Lines changed: 9 additions & 4 deletions
File tree
- dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/dxf2/metadata
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| |||
0 commit comments