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

Panicking on occasional PoisonError after delete() #53

Closed
busyboredom opened this issue Nov 21, 2021 · 1 comment
Closed

Panicking on occasional PoisonError after delete() #53

busyboredom opened this issue Nov 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@busyboredom
Copy link

busyboredom commented Nov 21, 2021

Relevant logs:

[2021-11-21T18:12:12Z DEBUG httpmock::server::web::handlers] Deleted mock with id=46
[2021-11-21T18:12:12Z DEBUG httpmock::server::web::handlers] Adding new mock with ID=48
[2021-11-21T18:12:12Z DEBUG httpmock::server::web::handlers] Deleted mock with id=45
[2021-11-21T18:12:12Z DEBUG httpmock::server::web::handlers] Adding new mock with ID=49
[2021-11-21T18:12:12Z DEBUG httpmock::server::web::handlers] Matched mock with id=45 to the following request: HttpMockRequest {

(request details omitted for brevity)

}
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /home/charlie/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/httpmock-0.6.4/src/server/web/handlers.rs:133:45
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', /home/charlie/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/httpmock-0.6.4/src/server/web/handlers.rs:115:40
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', /home/charlie/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/httpmock-0.6.4/src/server/web/handlers.rs:115:40

It doesn't happen often, maybe 1 in 10 times that I run my application's tests.

@alexliesenfeld alexliesenfeld added the bug Something isn't working label Dec 22, 2021
@alexliesenfeld
Copy link
Owner

alexliesenfeld commented Dec 22, 2021

Thanks for submitting this issue. The error should be fixed with e6282b8, which will be part of the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants