boustrophedon / pgtemp

Rust library and daemon for easily starting postgres databases per-test without Docker
MIT License
219 stars 6 forks source link

Don't crash on drop after `shutdown` call. #10

Closed nihohit closed 4 weeks ago

nihohit commented 2 months ago

let mut postgres_process = self.postgres_process.take().unwrap(); panics the second time it is called.

haakonn commented 4 weeks ago

I came here to report this after getting bitten by it. The changes here look good.

boustrophedon commented 4 weeks ago

Sorry, I completely forgot about this. I pushed #11 and released v0.4.0 in #12 so this should be fixed now.

Thank you!