Curious to know the reason behind using UTx0 instead of UTXO.
:shrug: doesn’t matter, but as it is an acronym it makes more sense to me to capitalize the first letter of each word an not the others.
Can this be made more understandable?
That’s a pretty vague request.. I tried to be as detailed as possible in the commit message since the change is not obvious. Could you point to what you don’t understand exactly?
What I can gather is this seems to make the test less tight around the actually expected error (?) and I don’t understand how that would make the test better.
Indeed this makes the test less tight because the test is currently unnecessarily specific. It’s supposed to be testing that a wrong txid count will cause a deserialization error, but it’s currently tightened to one of the many deserialization errors that can happen. The error that happens will depend on the snapshot data itself, which may change, therefore this check is brittle. This commit changes the check to match on two of the many deserialization errors that can happen. This makes it slightly less brittle.
I don’t see what’s the problem with that.
The issue is that the test does not check what is documented but something stricter and dependent on the snapshot data itself which may vary.
I think i’ll just drop this commit from this PR and keep it with my other PR.