From 752a52c4af1760d95cb0f0e48ade2d92e41023bf Mon Sep 17 00:00:00 2001 From: "alex.sharov" <AskAlexSharov@gmail.com> Date: Mon, 21 Mar 2022 19:33:26 +0700 Subject: [PATCH] fix test --- turbo/snapshotsync/block_snapshots_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/turbo/snapshotsync/block_snapshots_test.go b/turbo/snapshotsync/block_snapshots_test.go index 272d624885..fe2349308c 100644 --- a/turbo/snapshotsync/block_snapshots_test.go +++ b/turbo/snapshotsync/block_snapshots_test.go @@ -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() } } -- GitLab