Stop leaking a cache in Cache2kCacheMeterBinderProviderTests

Closes gh-45469
This commit is contained in:
Andy Wilkinson
2025-05-09 14:30:28 +01:00
parent 421be5e0e6
commit fe6f0a5905

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,6 +39,7 @@ class Cache2kCacheMeterBinderProviderTests {
MeterBinder meterBinder = new Cache2kCacheMeterBinderProvider().getMeterBinder(cacheManager.getCache("test"),
Collections.emptyList());
assertThat(meterBinder).isInstanceOf(Cache2kCacheMetrics.class);
cacheManager.destroy();
}
}