dhcpsvc: fix test paths
This commit is contained in:
parent
e269260fbe
commit
d08b70983d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue