diff --git a/vlib/v/tests/go_wait_option_test.v b/vlib/v/tests/go_wait_option_test.v index 0097eae3cf9a60..68a56888f976a6 100644 --- a/vlib/v/tests/go_wait_option_test.v +++ b/vlib/v/tests/go_wait_option_test.v @@ -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 } @@ -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() ! {