From 06168bb1309c1e0d0c140cd375f945411b7ca4af Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 9 Apr 2021 15:05:29 +0100 Subject: [PATCH] Polish FileSystemWatcherTests See gh-25982 --- .../boot/devtools/filewatch/FileSystemWatcherTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 6859953cf0e..bdd34c95382 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);