Ensure ExpiringMap.shutdown() always runs in tests via try/finally#2820
Conversation
…always runs Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot FAILURE: Build failed with an exception.
/home/runner/work/BentoBox/BentoBox/src/test/java/world/bentobox/bentobox/util/ExpiringMapTest.java:94: error: ';' expected |
… testNotEqualsDifferentValues Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Fixed in |
|



ExpiringMap otherinstances intry/finallysoshutdown()is always called, even if assertions failtryblocks intestNotEqualsDifferentEntriesandtestNotEqualsDifferentValuesthat caused compilation errors✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.