Skip to content

Commit 49cc935

Browse files
committed
test(pool): a Windows build does not meet <windows.h>'s max macro
1 parent 5164fd6 commit 49cc935

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tests/test_pool.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ TEST_F(PoolTest, AContentLengthPastThirtyTwoBitsIsNotSilentlyZero) {
190190
// the width of the field and nothing else.
191191
// (`ABodyLargerThanTheConfiguredLimitIsRefused` covers the cap.)
192192
auto cfg = test_config();
193-
cfg.maxResponseBodyBytes = std::numeric_limits<std::int64_t>::max();
193+
// Parenthesised: <windows.h>, which the test servers include on Windows,
194+
// defines a `max` macro.
195+
cfg.maxResponseBodyBytes = (std::numeric_limits<std::int64_t>::max)();
194196
https::HttpClient client(cfg);
195197

196198
auto first = client.send(get(server.url("/one")));

0 commit comments

Comments
 (0)