aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver-test/zenserver-test.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-04-11 13:37:19 +0200
committerGitHub Enterprise <[email protected]>2026-04-11 13:37:19 +0200
commitb481ba4cb40e8c8e1781d1fa74b2fc5c89564a0f (patch)
tree21860bcdc05665e2a9b2ef50b911156cbc0fe4db /src/zenserver-test/zenserver-test.cpp
parentSeparate action and worker chunk stores for compute service (diff)
parenthub deprovision all (#938) (diff)
downloadzen-sb/memory-cid-store.tar.xz
zen-sb/memory-cid-store.zip
Merge branch 'main' into sb/memory-cid-storesb/memory-cid-store
Diffstat (limited to 'src/zenserver-test/zenserver-test.cpp')
-rw-r--r--src/zenserver-test/zenserver-test.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/zenserver-test/zenserver-test.cpp b/src/zenserver-test/zenserver-test.cpp
index cf7ffe4e4..d713f693f 100644
--- a/src/zenserver-test/zenserver-test.cpp
+++ b/src/zenserver-test/zenserver-test.cpp
@@ -199,7 +199,7 @@ TEST_CASE("default.single")
HttpClient Http{fmt::format("http://localhost:{}", PortNumber)};
- for (int i = 0; i < 100; ++i)
+ for (int i = 0; i < 20; ++i)
{
auto res = Http.Get("/test/hello"sv);
++RequestCount;
@@ -238,7 +238,6 @@ TEST_CASE("default.loopback")
ZEN_INFO("Running loopback server test...");
- SUBCASE("ipv4 endpoint connectivity")
{
HttpClient Http{fmt::format("http://127.0.0.1:{}", PortNumber)};
@@ -247,7 +246,6 @@ TEST_CASE("default.loopback")
CHECK(res);
}
- SUBCASE("ipv6 endpoint connectivity")
{
HttpClient Http{fmt::format("http://[::1]:{}", PortNumber)};
@@ -287,7 +285,7 @@ TEST_CASE("multi.basic")
HttpClient Http{fmt::format("http://localhost:{}", PortNumber)};
- for (int i = 0; i < 100; ++i)
+ for (int i = 0; i < 20; ++i)
{
auto res = Http.Get("/test/hello"sv);
++RequestCount;
@@ -401,13 +399,11 @@ TEST_CASE("http.unixsocket")
Settings.UnixSocketPath = SocketPath;
HttpClient Http{fmt::format("http://localhost:{}", PortNumber), Settings, {}};
- SUBCASE("GET over unix socket")
{
HttpClient::Response Res = Http.Get("/testing/hello");
CHECK(Res.IsSuccess());
}
- SUBCASE("POST echo over unix socket")
{
IoBuffer Body{IoBuffer::Wrap, "unix-test", 9};
HttpClient::Response Res = Http.Post("/testing/echo", Body);
@@ -431,13 +427,11 @@ TEST_CASE("http.nonetwork")
Settings.UnixSocketPath = SocketPath;
HttpClient Http{fmt::format("http://localhost:{}", PortNumber), Settings, {}};
- SUBCASE("GET over unix socket succeeds")
{
HttpClient::Response Res = Http.Get("/testing/hello");
CHECK(Res.IsSuccess());
}
- SUBCASE("TCP connection is refused")
{
asio::io_context IoContext;
asio::ip::tcp::socket Socket(IoContext);