Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"hyperbee": "^2.11.1",
"hyperblobs": "^2.3.0",
"hypercore": "^11.0.0",
"hypercore": "holepunchto/hypercore#update-min-length",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs published version

"hypercore-errors": "^1.0.0",
"is-options": "^1.0.2",
"mirror-drive": "^1.2.0",
Expand Down
6 changes: 6 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,7 @@ test('drive.entry(key, { timeout })', async (t) => {
await replicate(drive, swarm, mirror)

await drive.put('/file.txt', b4a.from('hi'))
await mirror.drive.db.core.update({ length: 2 })
await mirror.drive.getBlobs()

await swarm.destroy()
Expand All @@ -1324,6 +1325,7 @@ test('drive.entry(key, { wait })', async (t) => {
await replicate(drive, swarm, mirror)

await drive.put('/file.txt', b4a.from('hi'))
await mirror.drive.db.core.update({ length: 2 })
await mirror.drive.getBlobs()

await swarm.destroy()
Expand All @@ -1344,6 +1346,7 @@ test('drive.get(key, { timeout })', async (t) => {
await replicate(drive, swarm, mirror)

await drive.put('/file.txt', b4a.from('hi'))
await mirror.drive.db.core.update({ length: 2 })
await mirror.drive.getBlobs()

const entry = await mirror.drive.entry('/file.txt')
Expand All @@ -1368,6 +1371,7 @@ test('drive.get(key, { wait }) with entry but no blob', async (t) => {
await replicate(drive, swarm, mirror)

await drive.put('/file.txt', b4a.from('hi'))
await mirror.drive.db.core.update({ length: 2 })
await mirror.drive.getBlobs()

const entry = await mirror.drive.entry('/file.txt')
Expand All @@ -1392,6 +1396,7 @@ test('drive.get(key, { wait }) without entry', async (t) => {
await replicate(drive, swarm, mirror)

await drive.put('/file.txt', b4a.from('hi'))
await mirror.drive.db.core.update({ length: 2 })
await mirror.drive.getBlobs()

await swarm.destroy()
Expand All @@ -1412,6 +1417,7 @@ test('drive peek with get() and timeout', async (t) => {
await replicate(drive, swarm, mirror)

await drive.put('/file.txt', b4a.from('hi'))
await mirror.drive.db.core.update({ length: 2 })
await mirror.drive.getBlobs()

const entry = await mirror.drive.entry('/file.txt')
Expand Down