Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Aug 8, 2024
1 parent 12ec52f commit b4a354b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/suspend.js
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,7 @@ test('suspend - restart with unindexed local nodes', async t => {
const c1 = createBase(stores[2], null, t)

await c1.append('c101')

const exp = { key: c.local.key, length: c.local.length - 1 }
const exp = { key: c1.local.key, length: c1.local.length - 1 }

const last = await c1.local.get(c1.local.length - 1)
t.alike(last.node.heads, [exp])
Expand Down Expand Up @@ -1089,7 +1088,7 @@ test('suspend - restart with indexed and unindexed local nodes', async t => {

await c1.append('c101')

const exp = { key: c.local.key, length: c.local.length - 1 }
const exp = { key: c1.local.key, length: c1.local.length - 1 }

const last = await c1.local.get(c1.local.length - 1)
t.alike(last.node.heads, [exp])
Expand Down

0 comments on commit b4a354b

Please sign in to comment.