We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfd975e commit bdc7234Copy full SHA for bdc7234
inferred-spans/src/test/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfilerTest.java
@@ -57,10 +57,12 @@ void tearDown() {
57
}
58
59
@Test
60
- void shouldLazilyCreateTempFilesAndCleanThem() throws Exception {
61
-
62
- List<Path> tempFiles = getProfilerTempFiles();
63
- assertThat(tempFiles).isEmpty();
+ void shouldLazilyCreateTempFilesAndCleanThem() {
+ for (Path file : getProfilerTempFiles()) {
+ if (!file.toFile().delete()) {
+ throw new IllegalStateException("Could not delete temp file: " + file);
64
+ }
65
66
67
// temporary files should be created on-demand, and properly deleted afterwards
68
setupProfiler(false);
0 commit comments