dhcpsvc: fix test paths

This commit is contained in:
Eugene Burkov 2024-07-09 20:37:42 +03:00
parent e269260fbe
commit d08b70983d
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import (
"io/fs"
"net/netip"
"os"
"path"
"path/filepath"
"strings"
"testing"
@ -26,7 +27,7 @@ func newTempDB(tb testing.TB) (dst string) {
const filename = "leases.json"
data, err := fs.ReadFile(testdata, filepath.Join(tb.Name(), filename))
data, err := fs.ReadFile(testdata, path.Join(tb.Name(), filename))
require.NoError(tb, err)
dst = filepath.Join(tb.TempDir(), filename)