From eb765f975cc45d58bd0f3819fa63f1ef04746f57 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 27 Jan 2022 17:43:55 +0200 Subject: [PATCH] ci: add a small delay between failed test retries. bump retries for channel_select_6_test.v to 8 --- cmd/tools/modules/testing/common.v | 1 + vlib/sync/channel_select_6_test.v | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tools/modules/testing/common.v b/cmd/tools/modules/testing/common.v index 84add27d3d..08badc1dbe 100644 --- a/cmd/tools/modules/testing/common.v +++ b/cmd/tools/modules/testing/common.v @@ -358,6 +358,7 @@ fn worker_trunner(mut p pool.PoolProcessor, idx int, thread_id int) voidptr { goto test_passed_system } } + time.sleep(500 * time.millisecond) } ts.failed = true ts.benchmark.fail() diff --git a/vlib/sync/channel_select_6_test.v b/vlib/sync/channel_select_6_test.v index deb22cdf14..9a5092a91f 100644 --- a/vlib/sync/channel_select_6_test.v +++ b/vlib/sync/channel_select_6_test.v @@ -1,4 +1,4 @@ -// vtest retry: 4 +// vtest retry: 8 // This test case runs concurrent 3 instances of `do_select` that // communicate with 6 other threads doing send and receive operations.