Polish FileSystemWatcherTests

See gh-25982
pull/26435/head
Andy Wilkinson 4 years ago
parent 90a7450737
commit 06168bb130

@ -284,8 +284,7 @@ class FileSystemWatcherTests {
this.watcher.addSourceDirectory(directory);
this.watcher.start();
this.watcher.stopAfter(1);
ChangedFiles changedFiles = getSingleChangedFiles();
Set<ChangedFile> actual = changedFiles.getFiles();
Set<ChangedFile> actual = getAllFileChanges();
Set<ChangedFile> expected = new HashSet<>();
expected.add(new ChangedFile(directory, recreate, Type.ADD));
assertThat(actual).isEqualTo(expected);

Loading…
Cancel
Save