increase timeout for hashing

pull/4/head
Zlatin Balevsky 2018-07-20 04:02:08 +01:00
parent 1ac93f117a
commit fe405d5faf
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class HasherServiceTest {
service.onFileSharedEvent new FileSharedEvent(file: f) service.onFileSharedEvent new FileSharedEvent(file: f)
Set<String> fileNames = new HashSet<>() Set<String> fileNames = new HashSet<>()
while (true) { while (true) {
def hashed = listener.poll(100, TimeUnit.MILLISECONDS) def hashed = listener.poll(1000, TimeUnit.MILLISECONDS)
if (hashed == null) if (hashed == null)
break break
fileNames.add(hashed.sharedFile?.file?.getName()) fileNames.add(hashed.sharedFile?.file?.getName())