hypercore-protocol / hypercore-next

Hypercore 10 is an append only log with multi-writer primitives built in.
MIT License
150 stars 15 forks source link

Output replication errors as TAP comments and add `eventFlush()` helper #42

Closed kasperisager closed 2 years ago

kasperisager commented 2 years ago

await new Promise(resolve => setImmediate(resolve)) was showing up quite often in tests and has now been reduced to await eventFlush(). Also, replication errors were being written to stdout, which broke the TAP stream. The errors are now instead printed as TAP comments.