Skip to content

Commit a5fe36a

Browse files
committed
Updating tests
1 parent 0430c40 commit a5fe36a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

disk-buffering/src/test/java/io/opentelemetry/contrib/disk/buffering/internal/storage/FolderManagerTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,11 @@ void createWritableFile_withTimeMillisAsName() throws IOException {
5858

5959
@Test
6060
void clearFiles() throws IOException {
61-
when(clock.now())
62-
.thenReturn(MILLISECONDS.toNanos(1000L))
63-
.thenReturn(MILLISECONDS.toNanos(2000L));
61+
when(clock.now()).thenReturn(MILLISECONDS.toNanos(1000L));
6462

65-
// Creating 2 files
66-
folderManager.createWritableFile();
63+
// Creating file
6764
folderManager.createWritableFile();
68-
assertThat(rootDir.list()).containsExactlyInAnyOrder("1000", "2000");
65+
assertThat(rootDir.list()).containsExactly("1000");
6966

7067
// Clear
7168
folderManager.clear();

0 commit comments

Comments
 (0)