Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change signature of task function to return a Result #103

Closed
jeremyandrews opened this issue Jul 18, 2020 · 1 comment
Closed

change signature of task function to return a Result #103

jeremyandrews opened this issue Jul 18, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@jeremyandrews
Copy link
Member

jeremyandrews commented Jul 18, 2020

Currently Goose Task functions do not return anything, preventing us from using the ? shortcut to handle errors. This requires the use of more boilerplate code when writing load tests than is desirable. This issue is to implement the standard Rust pattern for returning a Result<T, E>.

Once implemented, from load test functions, on success we'll need to return Ok(), on failure we'll need to return Err().

@jeremyandrews
Copy link
Member Author

fixed by #108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant