package channeldb_test
import (
"testing"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/kvdb"
"github.com/stretchr/testify/require"
)
// TestDefaultOptions tests the default options are created as intended.
func TestDefaultOptions(t *testing.T) {
opts := channeldb.DefaultOptions()
require.True(t, opts.NoFreelistSync)
require.False(t, opts.AutoCompact)
require.Equal(
t, kvdb.DefaultBoltAutoCompactMinAge, opts.AutoCompactMinAge,
require.Equal(t, kvdb.DefaultDBTimeout, opts.DBTimeout)
t, channeldb.DefaultRejectCacheSize, opts.RejectCacheSize,
t, channeldb.DefaultChannelCacheSize, opts.ChannelCacheSize,
}