Skip to content

Commit e1b2448

Browse files
unknownunknown
authored andcommitted
Some corrections for tests
1 parent 5b0c1ef commit e1b2448

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Release/tests/Functional/http/client/connections_and_errors.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,20 @@ TEST_FIXTURE(uri_address, invalid_method)
138138
{
139139
web::http::uri uri(U("https://www.bing.com/"));
140140
http_client client(uri);
141-
VERIFY_THROWS(client.request("my\rmethod").get(), http_exception);
141+
VERIFY_THROWS(client.request(U("my\rmethod")).get(), http_exception);
142142
}
143143

144144
// This test sends an SSL request to a non-SSL server and should fail on handshaking
145145
TEST_FIXTURE(uri_address, handshake_fail, "Ignore:Linux", "TFS#747982")
146146
{
147147
web::http::uri ssl_uri(U("https://localhost:34568/"));
148148

149-
test_http_server server(m_uri);
150-
VERIFY_ARE_EQUAL(0u, server.open());
149+
test_http_server::scoped_server scoped(ssl_uri);
151150

152151
http_client client(ssl_uri);
153152
auto request = client.request(methods::GET);
154153

155-
VERIFY_THROWS(request.get(), std::exception);
154+
VERIFY_THROWS(request.get(), http_exception);
156155
}
157156

158157
#if !defined(__cplusplus_winrt)

0 commit comments

Comments
 (0)