Skip to content

Commit

Permalink
Disable Expect100ContinueTest test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Sep 4, 2024
1 parent 4c2a608 commit bd1da43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include <httplib.h>
#include <signal.h>

#ifndef _WIN32
#include <curl/curl.h>
#endif
#include <gtest/gtest.h>

#include <atomic>
Expand Down Expand Up @@ -7607,6 +7609,7 @@ TEST(DirtyDataRequestTest, HeadFieldValueContains_CR_LF_NUL) {
cli.Get("/test", {{"Test", "_\n\r_\n\r_"}});
}

#ifndef _WIN32
TEST(Expect100ContinueTest, ServerClosesConnection) {
static constexpr char reject[] = "Unauthorized";
static constexpr char accept[] = "Upload accepted";
Expand Down Expand Up @@ -7704,3 +7707,4 @@ TEST(Expect100ContinueTest, ServerClosesConnection) {
}
}
}
#endif

0 comments on commit bd1da43

Please sign in to comment.