fix: mfs preload test (#1551)
fix: mfs preload test (#1551)

JS makes no guarantees a function you schedule with `setTimeout` will execute before another function you schedule _even_ if the second function is scheduled for execution _after_ the first.

This PR fixes the MFS preload test to wait for the expected CIDs to have been preloaded instead of assuming they would be preloaded after a certain time.

License: MIT
Signed-off-by: Alan Shaw <91e38e63b890fbb214c8914809fde03c73e7f24d@tableflip.io>
ipfs/node-ipfs