diff --git a/turbo/snapshotsync/block_snapshots_test.go b/turbo/snapshotsync/block_snapshots_test.go index 272d62488588a846ca114dcde023889f49f46eda..fe2349308cb9a45f06b8d00068b0b6438bd9a92b 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() } }