update test

dbus-notify
Zlatin Balevsky 2022-06-24 15:00:34 +01:00
parent 9314f9c7e3
commit e9a05a89dd
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 0 deletions

View File

@ -181,8 +181,10 @@ class FileManagerTest {
InfoHash ih2 = InfoHash.fromHashList(new byte[64])
SharedFile sf2 = new SharedFile(f2, ih2.getRoot(), 0)
manager.onFileLoadedEvent new FileLoadedEvent(loadedFile: sf2)
Thread.sleep(50)
manager.onFileUnsharedEvent new FileUnsharedEvent(deleted : true, unsharedFiles: new SharedFile[]{sf2})
Thread.sleep(50)
// 1 match left
manager.onSearchEvent new SearchEvent(searchTerms: ["c"])