mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-21 12:35:33 +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"
|
||||
"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 a new issue