Skip to content

Commit 9b9bd9b

Browse files
committed
Ignoring runtime errors in inlined client test.
1 parent 42c7bf6 commit 9b9bd9b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libs/network/test/http/client_include_inlined.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ int main(int argc, char * argv[]) {
1111
using namespace boost::network;
1212
http::client c;
1313
http::client::request req("http://www.boost.org/");
14-
http::client::response res = c.get(req);
14+
try {
15+
http::client::response res = c.get(req);
16+
} catch (...) {
17+
// ignore the error, we just want to make sure
18+
// the interface works inlined.
19+
}
1520
return 0;
1621
}
1722

0 commit comments

Comments
 (0)