Skip to content

Commit

Permalink
dhcpsvc: fix test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jul 9, 2024
1 parent e269260 commit d08b709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/dhcpsvc/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io/fs"
"net/netip"
"os"
"path"
"path/filepath"
"strings"
"testing"
Expand All @@ -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)
Expand Down

0 comments on commit d08b709

Please sign in to comment.