diff --git a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java index 6859953cf0..bdd34c9538 100644 --- a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java +++ b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java @@ -284,8 +284,7 @@ class FileSystemWatcherTests { this.watcher.addSourceDirectory(directory); this.watcher.start(); this.watcher.stopAfter(1); - ChangedFiles changedFiles = getSingleChangedFiles(); - Set actual = changedFiles.getFiles(); + Set actual = getAllFileChanges(); Set expected = new HashSet<>(); expected.add(new ChangedFile(directory, recreate, Type.ADD)); assertThat(actual).isEqualTo(expected);