mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-21 20:39:04 +03:00
dhcpsvc: fix test paths
This commit is contained in:
parent
e269260fbe
commit
d08b70983d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue