Skip to content

Commit d1cfb47

Browse files
committed
Capture num_events explicitly for MSVC
1 parent e42aa31 commit d1cfb47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/server-sent-events/tests/curl_client_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ TEST(CurlClientTest, HandlesRapidEvents) {
794794
MockSSEServer server;
795795
const int num_events = 100;
796796

797-
auto port = server.start([](auto const&, auto send_response, auto send_sse_event, auto close) {
797+
auto port = server.start([num_events](auto const&, auto send_response, auto send_sse_event, auto close) {
798798
http::response<http::string_body> res{http::status::ok, 11};
799799
res.set(http::field::content_type, "text/event-stream");
800800
res.chunked(true);

0 commit comments

Comments
 (0)