Skip to content

Commit

Permalink
fix many seeders test. Need better test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Dead-off committed Jul 25, 2018
1 parent f0886cd commit 35f374c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public CommunicationManager getClient(String name) {
final ExecutorService executorService = new ThreadPoolExecutor(
DEFAULT_POOL_SIZE, DEFAULT_POOL_SIZE,
0L, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<Runnable>(2000));
new LinkedBlockingQueue<Runnable>(4000));
final ExecutorService pieceValidatorExecutor = new ThreadPoolExecutor(
DEFAULT_POOL_SIZE, DEFAULT_POOL_SIZE,
0L, TimeUnit.MILLISECONDS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1284,8 +1284,8 @@ protected boolean condition() {
}

public void testManySeeders() throws Exception {
File artifact = tempFiles.createTempFile(1024 * 1024 * 1024);
int seedersCount = 30;
File artifact = tempFiles.createTempFile(256 * 1024 * 1024);
int seedersCount = 15;
TorrentMetadata torrent = TorrentCreator.create(artifact, this.tracker.getAnnounceURI(), "test");
File torrentFile = tempFiles.createTempFile();
saveTorrent(torrent, torrentFile);
Expand Down

0 comments on commit 35f374c

Please sign in to comment.