diff options
Diffstat (limited to 'tests/hsts-db-test.c')
-rw-r--r-- | tests/hsts-db-test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/hsts-db-test.c b/tests/hsts-db-test.c index 783f8fe4..f1034867 100644 --- a/tests/hsts-db-test.c +++ b/tests/hsts-db-test.c @@ -112,9 +112,8 @@ hsts_db_session_new (void) { SoupHSTSEnforcer *hsts_db = soup_hsts_enforcer_db_new (DB_FILE); - SoupSession *session = soup_test_session_new (SOUP_TYPE_SESSION, - "add-feature", hsts_db, - NULL); + SoupSession *session = soup_test_session_new (SOUP_TYPE_SESSION, NULL); + soup_session_add_feature (session, SOUP_SESSION_FEATURE (hsts_db)); g_signal_connect (session, "request-queued", G_CALLBACK (on_request_queued), NULL); g_object_unref (hsts_db); |