Closed da-kami closed 2 years ago
I am a bit confused by
panicked at 'called `Option::unwrap()` on a `None` value'
because I don't think that there is any panic in the test. We might have just run into a timeout? Maybe you can have a look @luckysori
The unwrap is
let attestation = oracle_data_rollover
.attestation_for_event(first_liquidation_event)
.unwrap();
So I guess there's no attestation at that point ?
Yeah, that is where it panics and you are right that this must be the problem! I thought we would also see the panic in the test logs but since it panics in the test code this is expected behavior.
It appears that there is no attestation for the given first event. This is odd because the event is fixed, I would not know how this can fail. I think the problem might be that we are not awaiting the DLC to actually change, so the latest_dlc
might still be the previous one.
Happens to me sometimes locally too :/
protip: cargo nextest run --retries=1
typically solves the problem on local machine, it will re-run flaky tests once.
See test run: https://github.com/itchysats/itchysats/runs/7611016167?check_suite_focus=true First seen on PR: https://github.com/itchysats/itchysats/pull/2599
Copied logs: