diff options
author | Dan Winship <danw@gnome.org> | 2014-03-09 10:04:36 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-05-02 09:13:14 -0400 |
commit | 96b890dc8a66d3464c380053ae3ed90937213670 (patch) | |
tree | aa31a2d93652268da141254675a853711c3b97a0 /tests/sniffing-test.c | |
parent | 1c71cb223b00eaa5c776229d9e0312ba852ef87a (diff) | |
download | libsoup-96b890dc8a66d3464c380053ae3ed90937213670.tar.gz |
tests: port old tests to new SoupServer APIs, add some new tests
Diffstat (limited to 'tests/sniffing-test.c')
-rw-r--r-- | tests/sniffing-test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/sniffing-test.c b/tests/sniffing-test.c index 32fad9fc..1e8680bf 100644 --- a/tests/sniffing-test.c +++ b/tests/sniffing-test.c @@ -440,10 +440,9 @@ main (int argc, char **argv) test_init (argc, argv, NULL); - server = soup_test_server_new (TRUE); + server = soup_test_server_new (SOUP_TEST_SERVER_IN_THREAD); soup_server_add_handler (server, NULL, server_callback, NULL, NULL); - base_uri = soup_uri_new ("http://127.0.0.1/"); - soup_uri_set_port (base_uri, soup_server_get_port (server)); + base_uri = soup_test_server_get_uri (server, "http", NULL); session = soup_test_session_new (SOUP_TYPE_SESSION_ASYNC, SOUP_SESSION_USE_THREAD_CONTEXT, TRUE, |