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:
parent
6987f2c087
commit
9d2529b611
@ -168,7 +168,7 @@ fn switch2() u64 {
|
|||||||
fn test_global_mutex() {
|
fn test_global_mutex() {
|
||||||
assert f1 == 34.0625
|
assert f1 == 34.0625
|
||||||
t := go switch2()
|
t := go switch2()
|
||||||
for _ in 0 .. 2500000 {
|
for _ in 0 .. 25000 {
|
||||||
mtx.@lock()
|
mtx.@lock()
|
||||||
f1, f2 = f2, f1
|
f1, f2 = f2, f1
|
||||||
mtx.unlock()
|
mtx.unlock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user