]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: test-smtp-payload: Make proper definition for the maximum number of paralle...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 17 Mar 2018 17:05:01 +0000 (18:05 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 25 May 2018 20:46:29 +0000 (22:46 +0200)
src/lib-smtp/test-smtp-payload.c

index 8a6644fbb3c30c93bd29eb5039697ffb7fffd16f..42543fad6fd6f70856f1a91af9b02f548449f201 100644 (file)
@@ -27,6 +27,8 @@
 #include <unistd.h>
 #include <dirent.h>
 
+#define MAX_PARALLEL_PENDING 200
+
 static bool debug = FALSE;
 
 static unsigned int test_max_pending = 1;
@@ -843,7 +845,7 @@ static void test_run_scenarios(enum smtp_protocol protocol,
 
        test_out("sequential", TRUE);
 
-       test_max_pending = 200;
+       test_max_pending = MAX_PARALLEL_PENDING;
        test_unknown_size = FALSE;
        test_files_init();
        test_run_client_server(protocol,
@@ -855,7 +857,7 @@ static void test_run_scenarios(enum smtp_protocol protocol,
 
        smtp_server_set.max_pipelined_commands = 5;
        smtp_server_set.capabilities |= SMTP_CAPABILITY_PIPELINING;
-       test_max_pending = 200;
+       test_max_pending = MAX_PARALLEL_PENDING;
        test_unknown_size = FALSE;
        test_files_init();
        test_run_client_server(protocol,
@@ -867,7 +869,7 @@ static void test_run_scenarios(enum smtp_protocol protocol,
 
        smtp_server_set.max_pipelined_commands = 5;
        smtp_server_set.capabilities |= SMTP_CAPABILITY_PIPELINING;
-       test_max_pending = 200;
+       test_max_pending = MAX_PARALLEL_PENDING;
        test_unknown_size = TRUE;
        test_files_init();
        test_run_client_server(protocol,