mongodb / mongo-rust-driver

The official MongoDB Rust Driver
https://www.mongodb.com/docs/drivers/rust/current/
Apache License 2.0
1.44k stars 164 forks source link

RUST-1990: Update human_4_4 to correctly show that the callback count… #1166

Closed pmeredit closed 4 months ago

pmeredit commented 4 months ago

… will be 3 on a failed refresh by returning bad tokens on subsequent calls

Initially I thought I had implemented the flow wrongly because I did in go, but it was only the test that was wrong thankfully. To be fair, I think the test changed in the spec to mention returning a bad token on subsequent callback calls in order to get a callback count of 3 (fails due to failpoint, fails due to refresh, fails due to attempt to do access token with bad token).