dhcpsvc: fix test paths
This commit is contained in:
parent
e269260fbe
commit
d08b70983d
|
@ -4,6 +4,7 @@ import (
|
||||||
"io/fs"
|
"io/fs"
|
||||||
"net/netip"
|
"net/netip"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -26,7 +27,7 @@ func newTempDB(tb testing.TB) (dst string) {
|
||||||
|
|
||||||
const filename = "leases.json"
|
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)
|
require.NoError(tb, err)
|
||||||
|
|
||||||
dst = filepath.Join(tb.TempDir(), filename)
|
dst = filepath.Join(tb.TempDir(), filename)
|
||||||
|
|
Loading…
Reference in New Issue