mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: time.wait() => time.sleep()
This commit is contained in:
@@ -58,5 +58,5 @@ fn test_select() {
|
||||
// the 3rd contribution is `byte` and must be seen modulo 256
|
||||
expected_sum := 2 * (300 * (300 - 1) / 2) + 256 * (256 - 1) / 2 + 44 * (44 - 1) / 2
|
||||
assert sum == expected_sum
|
||||
time.wait(20 * time.millisecond) // to give assert in coroutine enough time
|
||||
time.sleep(20 * time.millisecond) // to give assert in coroutine enough time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user