From 4c2a608a0c85c9a5f92417255e4ce641b3cfb51a Mon Sep 17 00:00:00 2001 From: yhirose Date: Wed, 4 Sep 2024 09:06:27 -0400 Subject: [PATCH] Fix GitHub Actions errors --- .github/workflows/test.yaml | 4 ++-- test/Makefile | 2 +- test/test.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 531fd4d..cf2104f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,8 +8,8 @@ jobs: steps: - name: checkout uses: actions/checkout@v4 - - name: install brotli - run: sudo apt-get update && sudo apt-get install -y libbrotli-dev + - name: install libraries + run: sudo apt-get update && sudo apt-get install -y libbrotli-dev libcurl4-openssl-dev - name: build and run tests run: cd test && make -j4 - name: run fuzz test target diff --git a/test/Makefile b/test/Makefile index 5468488..96ebec9 100644 --- a/test/Makefile +++ b/test/Makefile @@ -18,7 +18,7 @@ ZLIB_SUPPORT = -DCPPHTTPLIB_ZLIB_SUPPORT -lz BROTLI_DIR = $(PREFIX)/opt/brotli BROTLI_SUPPORT = -DCPPHTTPLIB_BROTLI_SUPPORT -I$(BROTLI_DIR)/include -L$(BROTLI_DIR)/lib -lbrotlicommon -lbrotlienc -lbrotlidec -TEST_ARGS = gtest/gtest-all.cc gtest/gtest_main.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT) -pthread +TEST_ARGS = gtest/gtest-all.cc gtest/gtest_main.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT) -pthread -lcurl # By default, use standalone_fuzz_target_runner. # This runner does no fuzzing, but simply executes the inputs diff --git a/test/test.cc b/test/test.cc index 95b993e..231b290 100644 --- a/test/test.cc +++ b/test/test.cc @@ -7614,7 +7614,7 @@ TEST(Expect100ContinueTest, ServerClosesConnection) { Server svr; - svr.set_expect_100_continue_handler([](const Request &req, Response &res) { + svr.set_expect_100_continue_handler([](const Request &/*req*/, Response &res) { res.status = StatusCode::Unauthorized_401; res.set_content(reject, "text/plain"); return res.status;