Skip to content

Commit

Permalink
lib-http: increase pool sizes in tests
Browse files Browse the repository at this point in the history
Pool growth messages spam the test output, just dive in with a slightly
larger default to shut them up. Only affects these individual tests,
not any other users of the library.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
  • Loading branch information
Phil Carmody committed Aug 30, 2018
1 parent 14fe3df commit 07c6d39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib-http/test-http-payload.c
Expand Up @@ -563,7 +563,7 @@ static void client_init(int fd)

net_set_nonblock(fd, TRUE);

pool = pool_alloconly_create("client", 256);
pool = pool_alloconly_create("client", 512);
client = p_new(pool, struct client, 1);
client->pool = pool;

Expand Down
2 changes: 1 addition & 1 deletion src/lib-http/test-http-server-errors.c
Expand Up @@ -613,7 +613,7 @@ client_connection_init(const struct ip_addr *ip, in_port_t port)
struct client_connection *conn;
pool_t pool;

pool = pool_alloconly_create("client connection", 256);
pool = pool_alloconly_create("client connection", 512);
conn = p_new(pool, struct client_connection, 1);
conn->pool = pool;

Expand Down

0 comments on commit 07c6d39

Please sign in to comment.