summaryrefslogtreecommitdiffstats
path: root/vbench/src/tests/http_connection_pool/http_connection_pool_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vbench/src/tests/http_connection_pool/http_connection_pool_test.cpp')
-rw-r--r--vbench/src/tests/http_connection_pool/http_connection_pool_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vbench/src/tests/http_connection_pool/http_connection_pool_test.cpp b/vbench/src/tests/http_connection_pool/http_connection_pool_test.cpp
index 06f158e7b84..2cd749d0426 100644
--- a/vbench/src/tests/http_connection_pool/http_connection_pool_test.cpp
+++ b/vbench/src/tests/http_connection_pool/http_connection_pool_test.cpp
@@ -19,7 +19,7 @@ TEST_MT_F("http connection pool", 2, ServerSocket()) {
EXPECT_TRUE(conn.get() == 0);
conn = pool.getConnection(ServerSpec("localhost", f1.port()));
EXPECT_TRUE(conn.get() != 0);
- conn->stream().obtain(1, 1); // trigger eof
+ conn->stream().obtain(); // trigger eof
pool.putConnection(std::move(conn));
EXPECT_TRUE(conn.get() == 0);
conn = pool.getConnection(ServerSpec("localhost", f1.port()));
@@ -38,7 +38,7 @@ TEST_MT_FFFF("stress http connection pool", 256, ServerSocket(), Timer(), HttpCo
HttpConnection::UP conn = f3.getConnection(ServerSpec("localhost", f1.port()));
EXPECT_TRUE(conn.get() != 0);
if (thread_id > (num_threads / 2)) {
- conn->stream().obtain(1, 1); // trigger eof
+ conn->stream().obtain(); // trigger eof
}
f3.putConnection(std::move(conn));
EXPECT_TRUE(conn.get() == 0);