Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 03eea7f

Browse files
committed
fix: fix log.tail by calling add after listening for events
1 parent 979d8b5 commit 03eea7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/log.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ describe('.log', function () {
3131
})
3232

3333
it('.log.tail', (done) => {
34+
setTimeout(() => {
35+
ipfs.files.add(Buffer.from('just adding some data to generate logs'))
36+
}, 1000)
37+
3438
const req = ipfs.log.tail((err, res) => {
3539
expect(err).to.not.exist()
3640
expect(req).to.exist()

0 commit comments

Comments
 (0)