1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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.
This commit is contained in:
Delyan Angelov 2022-04-01 19:23:04 +03:00
parent 6987f2c087
commit 9d2529b611
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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()