Commit 83ea604
authored
Use strong value cache in PreparedStatementCachingIT (#525)
Previously this test was using strong values in cache to prevent them from
disappearing mid-test. Code comments explicitly say so.
However at some point with the change to using a decorator for
CqlPrepareAsyncProcessor it seems that the test was accidentally changed to
use weak values.
This change makes the test use a decorator which ignores CacheBuilder
passed to it and replaces it with brand new instance that has not yet
called `.weakValues()`.
Additionally assertion related to preparedStmtCacheRemoveLatch is moved after
typeChangeEventLatch since it looks like the latter triggers the former.
This part is mainly cosmetic.1 parent de10f2f commit 83ea604
File tree
1 file changed
+7
-4
lines changed- integration-tests/src/test/java/com/datastax/oss/driver/core/cql
1 file changed
+7
-4
lines changedLines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
270 | 276 | | |
271 | 277 | | |
272 | 278 | | |
273 | 279 | | |
274 | 280 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | 281 | | |
279 | 282 | | |
280 | 283 | | |
| |||
0 commit comments