Closed tegefaulkes closed 4 months ago
Seems that the failure is caused by test rigidity, we're expecting a fixed length vaultId, but in some cases the ID is 1 digit shorter. I wonder if it's just a multiformats thing. I'll check.
Vault1 z6jf5pJ1G8ZEcXusXAxr9eM clone
Vault2 zdmNxQGKbVfb4NGXgfmxJ1 pull,clone
Yeah, both of these IDs are 16 bytes wide, so multiformats will just create a shorter string for some values.
This means that I just need to make the test less rigid.
Base 32 hex should always result in the same length. And the public key is always 32 bytes. Therefore having a different lengths generated is a bug. The test rigidity is required.
It's not HEX. Do you want to change the format? Right now it's base58btc
.
No I thought this was about Node IDs, I forgot.
Specification
This test fails randomly with the following.
It seems to be entirely an errant space added to the output but it only happens sometimes.
Additional context
Tasks
// Fixme: temperamental problem with formatting the output. Fails sometimes due to an added space
comment fromscanNode.test.ts
.