Commit 8801934
committed
test: assert both ehcache.xml heap-bound paths, not just the template
HibernateEhcacheConfigFileTest arrived on master with #24762 and pinned the
User region to the ehcache.xml default template bound of 1,000,000. This
branch declares User explicitly so it can be sized and stored by reference,
so that region now carries 100,000 and the assertion failed.
The test's stated intent is that regions carry ehcache.xml's settings, bounded
rather than the unbounded provider defaults. That still holds; only the
specific number changed, and only for regions we now declare explicitly.
Assert both paths instead of one: Attribute has no explicit <cache> element
and must still inherit the default template, while User is declared and must
carry its own bound. That covers strictly more than before.
AI Assisted1 parent 960a2c7 commit 8801934
1 file changed
Lines changed: 16 additions & 1 deletion
File tree
- dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/cache
dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/cache/HibernateEhcacheConfigFileTest.java
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
| 116 | + | |
108 | 117 | | |
109 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
110 | 125 | | |
111 | | - | |
| 126 | + | |
112 | 127 | | |
113 | 128 | | |
114 | 129 | | |
| |||
0 commit comments