Permalink
Browse files

Fix an unit test issue.

  • Loading branch information...
1 parent 1df26e7 commit b7bf25beda311a00abf8ce2f125e46e7e2ac50c4 @jlouis jlouis committed Oct 25, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 apps/etorrent/src/etorrent_progress.erl
@@ -714,12 +714,13 @@ chunk_server_test_() ->
testid() -> 2.
setup_env() ->
- Valid = [],
+ Sizes = [{0, 2}, {1, 2}, {2, 2}],
+ Valid = etorrent_pieceset:empty(length(Sizes)),
{ok, Time} = ?timer:start_link(queue),
{ok, PPid} = ?pending:start_link(testid()),
{ok, EPid} = ?endgame:start_link(testid()),
{ok, SPid} = ?scarcity:start_link(testid(), Time, 8),
- {ok, CPid} = ?progress:start_link(testid(), 1, Valid, [{0, 2}, {1, 2}, {2, 2}], self()),
+ {ok, CPid} = ?progress:start_link(testid(), 1, Valid, Sizes, self()),
ok = ?pending:register(PPid),
ok = ?pending:receiver(CPid, PPid),
{Time, EPid, PPid, SPid, CPid}.

0 comments on commit b7bf25b

Please sign in to comment.