some test fixes
This commit is contained in:
@@ -85,7 +85,7 @@ void test_feed(std::string const& filename, rss_expect const& expect)
|
|||||||
}
|
}
|
||||||
TEST_CHECK(!ec);
|
TEST_CHECK(!ec);
|
||||||
|
|
||||||
char* buf = &buffer[0];
|
char* buf = buffer.size() ? &buffer[0] : NULL;
|
||||||
int len = buffer.size();
|
int len = buffer.size();
|
||||||
|
|
||||||
char const header[] = "HTTP/1.1 200 OK\r\n"
|
char const header[] = "HTTP/1.1 200 OK\r\n"
|
||||||
|
@@ -121,6 +121,8 @@ int test_main()
|
|||||||
if (std::string(test_torrents[i].file) == "whitespace_url.torrent")
|
if (std::string(test_torrents[i].file) == "whitespace_url.torrent")
|
||||||
{
|
{
|
||||||
// make sure we trimmed the url
|
// make sure we trimmed the url
|
||||||
|
TEST_CHECK(ti->trackers().size() > 0);
|
||||||
|
if (ti->trackers().size() > 0)
|
||||||
TEST_CHECK(ti->trackers()[0].url == "udp://test.com/announce");
|
TEST_CHECK(ti->trackers()[0].url == "udp://test.com/announce");
|
||||||
}
|
}
|
||||||
else if (std::string(test_torrents[i].file) == "duplicate_files.torrent")
|
else if (std::string(test_torrents[i].file) == "duplicate_files.torrent")
|
||||||
|
Reference in New Issue
Block a user