You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a task that intentionally loads a 404 page, for example:
// Load a random non-existent and uncached page.asyncfn random_404_page(user:&mutGooseUser) -> GooseTaskResult{letmut goose = user
.get(&format!("{}/{}/{}",
goose_eggs::text::random_word(6),
goose_eggs::text::random_word(4),
goose_eggs::text::random_word(3))).await?;// Goose will automatically flag a 404 as an error, but in this case a 404 is// expected so update it as a success in the metrics.ifletOk(response) = &goose.response{if response.status() == 404{
user.set_success(&mut goose.request)?;}Ok(())}
The metrics will show 0 errors when running this task, but confusingly errors still show up in the error summary at the end of the metrics, for example:
=== ERRORS ===
------------------------------------------------------------------------------
Count | Error
------------------------------------------------------------------------------
16 GET 404 page: 404 Not Found: 404 page
------------------------------------------------------------------------------
When running set_success() the expectation is for the error to not show up in the error summary.
The text was updated successfully, but these errors were encountered:
Create a task that intentionally loads a 404 page, for example:
The metrics will show 0 errors when running this task, but confusingly errors still show up in the error summary at the end of the metrics, for example:
When running
set_success()
the expectation is for the error to not show up in the error summary.The text was updated successfully, but these errors were encountered: