mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sync: only run channel_select_test.v when VTEST_RUN_FLAKY=1
This commit is contained in:
parent
e4065bd57b
commit
c2bc9f4960
@ -7,8 +7,17 @@ module sync
|
|||||||
// For that, please look at `channel_select_2_test.v` or `channel_select_3_test.v`
|
// For that, please look at `channel_select_2_test.v` or `channel_select_3_test.v`
|
||||||
// This test case uses the implementation in `sync/channels.v` directly
|
// This test case uses the implementation in `sync/channels.v` directly
|
||||||
// in order to test it independently from the support in the core language
|
// in order to test it independently from the support in the core language
|
||||||
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
fn test_should_run_flaky_test() {
|
||||||
|
if os.getenv('VTEST_RUN_FLAKY') != '1' {
|
||||||
|
eprintln('> skipping running flaky test, set VTEST_RUN_FLAKY to 1, to run it')
|
||||||
|
exit(0)
|
||||||
|
}
|
||||||
|
assert true
|
||||||
|
}
|
||||||
|
|
||||||
fn do_rec_i64(mut ch Channel) {
|
fn do_rec_i64(mut ch Channel) {
|
||||||
mut sum := i64(0)
|
mut sum := i64(0)
|
||||||
for _ in 0 .. 300 {
|
for _ in 0 .. 300 {
|
||||||
|
Loading…
Reference in New Issue
Block a user