Commit 04846374 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge branch '2.4.x'

See gh-25985
parents c5b762c8 06168bb1
...@@ -284,8 +284,7 @@ class FileSystemWatcherTests { ...@@ -284,8 +284,7 @@ class FileSystemWatcherTests {
this.watcher.addSourceDirectory(directory); this.watcher.addSourceDirectory(directory);
this.watcher.start(); this.watcher.start();
this.watcher.stopAfter(1); this.watcher.stopAfter(1);
ChangedFiles changedFiles = getSingleChangedFiles(); Set<ChangedFile> actual = getAllFileChanges();
Set<ChangedFile> actual = changedFiles.getFiles();
Set<ChangedFile> expected = new HashSet<>(); Set<ChangedFile> expected = new HashSet<>();
expected.add(new ChangedFile(directory, recreate, Type.ADD)); expected.add(new ChangedFile(directory, recreate, Type.ADD));
assertThat(actual).isEqualTo(expected); assertThat(actual).isEqualTo(expected);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment