mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 21:11:20 +00:00
fix windows tests
This commit is contained in:
parent
f5da8833b6
commit
d3c8634df8
@ -30,6 +30,7 @@ func createTestSegmentFile(t *testing.T, from, to uint64, name SnapshotType, dir
|
|||||||
LeafSize: 8,
|
LeafSize: 8,
|
||||||
})
|
})
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
defer idx.Close()
|
||||||
err = idx.AddKey([]byte{1}, 0)
|
err = idx.AddKey([]byte{1}, 0)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
err = idx.Build()
|
err = idx.Build()
|
||||||
@ -47,6 +48,7 @@ func createTestSegmentFile(t *testing.T, from, to uint64, name SnapshotType, dir
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
err = idx.Build()
|
err = idx.Build()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
defer idx.Close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user