From 9d2529b61121c20f8e4e1bb52e3298a2c5e0b81d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 1 Apr 2022 19:23:04 +0300 Subject: [PATCH] ci: reduce repetitions in test_global_mutex in init_global_test.v With the old number of repetitions (2500000), that test alone could take over 30 seconds, in the CI environment. --- vlib/v/tests/init_global_test.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/tests/init_global_test.v b/vlib/v/tests/init_global_test.v index 4dae83c8f1..3e61844d6f 100644 --- a/vlib/v/tests/init_global_test.v +++ b/vlib/v/tests/init_global_test.v @@ -168,7 +168,7 @@ fn switch2() u64 { fn test_global_mutex() { assert f1 == 34.0625 t := go switch2() - for _ in 0 .. 2500000 { + for _ in 0 .. 25000 { mtx.@lock() f1, f2 = f2, f1 mtx.unlock()