Skip to content

Commit

Permalink
Merge branch '2.3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Aug 5, 2020
2 parents b476bf8 + 94644f3 commit 7df4918
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ void waitsForPollingInterval() throws Exception {
void waitsForQuietPeriod() throws Exception {
setupWatcher(300, 200);
File directory = startWithNewDirectory();
for (int i = 0; i < 10; i++) {
for (int i = 0; i < 100; i++) {
touch(new File(directory, i + "test.txt"));
Thread.sleep(100);
Thread.sleep(10);
}
this.watcher.stopAfter(1);
ChangedFiles changedFiles = getSingleChangedFiles();
assertThat(changedFiles.getFiles().size()).isEqualTo(10);
assertThat(changedFiles.getFiles()).hasSize(100);
}

@Test
Expand Down Expand Up @@ -288,12 +288,12 @@ private File startWithNewDirectory() throws IOException {

private ChangedFiles getSingleChangedFiles() {
Set<ChangedFiles> singleChange = getSingleOnChange();
assertThat(singleChange.size()).isEqualTo(1);
assertThat(singleChange).hasSize(1);
return singleChange.iterator().next();
}

private Set<ChangedFiles> getSingleOnChange() {
assertThat(this.changes.size()).isEqualTo(1);
assertThat(this.changes).hasSize(1);
return this.changes.get(0);
}

Expand Down

0 comments on commit 7df4918

Please sign in to comment.