Files
2026-01-08 20:36:16 -08:00

28 lines
595 B
Go

// Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package lpmintegration
import (
"os"
"path/filepath"
"testing"
"github.com/luxfi/constants"
"github.com/stretchr/testify/require"
)
func TestSetupLPM(t *testing.T) {
require := require.New(t)
testDir := t.TempDir()
app := newTestApp(t, testDir)
err := os.MkdirAll(filepath.Dir(app.GetLPMLog()), constants.DefaultPerms755)
require.NoError(err)
err = SetupLpm(app, testDir)
require.NoError(err)
require.NotEqual(nil, app.Lpm)
require.Equal(testDir, app.LpmDir)
}