Skip to content

Commit

Permalink
aghnet: imp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Mar 28, 2022
1 parent bc225fe commit cf995e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/aghnet/net_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var testdata fs.FS = os.DirFS("./testdata")
// substRootDirFS replaces the aghos.RootDirFS function used throughout the
// package with fsys for tests ran under t.
func substRootDirFS(t testing.TB, fsys fs.FS) {
t.Helper()

prev := rootDirFS
t.Cleanup(func() { rootDirFS = prev })
rootDirFS = fsys
Expand Down

0 comments on commit cf995e9

Please sign in to comment.