Skip to content

Commit

Permalink
ci: fix flaky vlib/v/tests/go_wait_option_test.v (error->none)
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Sep 30, 2023
1 parent c552ecf commit f5fc0f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vlib/v/tests/go_wait_option_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

fn f(n int) ?f64 {
if n < 0 {
return error('negative number')
return none
}
return n + f64(n) / 2
}

fn g(n int) ? {
if n % 2 == 0 {
return error('even number')
return none
} else {
return
}
Expand Down Expand Up @@ -86,7 +86,7 @@ fn get_only_a_option_return(return_none bool) ? {
if return_none {
return
}
return error('msg')
return none
}

fn get_only_a_result_return() ! {
Expand Down

0 comments on commit f5fc0f9

Please sign in to comment.