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

ci,globals: hot fix for hanging test case (#10997)

This commit is contained in:
Uwe Krüger 2021-07-29 21:06:08 +02:00 committed by GitHub
parent c7ecb18f52
commit 44d8dcc418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,6 +128,7 @@ fn test_global_mutex() {
} else {
f2 = 17.0
}
mtx.unlock()
mtx.@rlock()
assert (f1 == 17.0 && f2 == 34.0625) || (f1 == 34.0625 && f2 == 17.0)
mtx.runlock()