(partially) fix test_web_seed

This commit is contained in:
Arvid Norberg
2011-09-10 05:36:38 +00:00
parent 09c235c936
commit 726f89ca99
2 changed files with 154 additions and 42 deletions

View File

@@ -239,9 +239,13 @@ int run_suite(char const* protocol, bool test_url_seed, bool chunked_encoding)
}
else
{
snprintf(tmp, sizeof(tmp), "http://127.0.0.1:%d/seed", port);
snprintf(tmp, sizeof(tmp), "%s://127.0.0.1:%d/seed", protocol, port);
t.add_http_seed(tmp);
}
fprintf(stderr, "testing: %s\n", tmp);
// for (int i = 0; i < 1000; ++i) sleep(1000);
// calculate the hash for all pieces
set_piece_hashes(t, "./tmp1_web_seed", ec);