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:
@ -53,9 +53,9 @@ fn test_ulids_generated_in_the_same_millisecond_have_the_same_prefix() {
|
||||
|
||||
fn test_ulids_should_be_lexicographically_ordered_when_not_in_same_millisecond() {
|
||||
ulid1 := rand.ulid()
|
||||
time.wait(1 * time.millisecond)
|
||||
time.sleep(1 * time.millisecond)
|
||||
ulid2 := rand.ulid()
|
||||
time.wait(1 * time.millisecond)
|
||||
time.sleep(1 * time.millisecond)
|
||||
ulid3 := rand.ulid()
|
||||
mut all := [ulid3, ulid2, ulid1]
|
||||
// eprintln('all before: $all')
|
||||
|
Reference in New Issue
Block a user