From 6d7d57a983c6054bca2730586f96d809bc64d867 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Sat, 3 Sep 2016 14:26:31 +0200 Subject: [PATCH] test: fix test-tcp-writealot flakiness on arm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Decrease the data sent for `arm` so the test doesn't timeout in the arm CI bots. PR-URL: https://github.com/libuv/libuv/pull/1038 Reviewed-By: Ben Noordhuis Reviewed-By: Saúl Ibarra Corretgé Reviewed-By: Colin Ihrig --- test/test-tcp-writealot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test-tcp-writealot.c b/test/test-tcp-writealot.c index 6cfe2ebb..7206fdc2 100644 --- a/test/test-tcp-writealot.c +++ b/test/test-tcp-writealot.c @@ -26,7 +26,11 @@ #define WRITES 3 +#if defined(__arm__) /* Decrease the chunks so the test passes on arm CI bots */ +#define CHUNKS_PER_WRITE 2048 +#else #define CHUNKS_PER_WRITE 4096 +#endif #define CHUNK_SIZE 10024 /* 10 kb */ #define TOTAL_BYTES (WRITES * CHUNKS_PER_WRITE * CHUNK_SIZE)