good morning!!!!

Skip to content
Snippets Groups Projects
Commit 752a52c4 authored by alex.sharov's avatar alex.sharov
Browse files

fix test

parent a9475d96
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,20 @@ func createTestSegmentFile(t *testing.T, from, to uint64, name Type, dir string)
err = idx.Build()
require.NoError(t, err)
defer idx.Close()
idx2, err := recsplit.NewRecSplit(recsplit.RecSplitArgs{
KeyCount: 1,
BucketSize: 10,
TmpDir: dir,
IndexFile: filepath.Join(dir, IdxFileName(from, to, TransactionsId.String())),
LeafSize: 8,
})
require.NoError(t, err)
err = idx2.AddKey([]byte{1}, 0)
require.NoError(t, err)
err = idx2.Build()
require.NoError(t, err)
defer idx2.Close()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment