chore: replace deprecated tenv linter with usetesting (#8504)

This commit is contained in:
Teppei Fukuda
2025-03-06 16:26:20 +04:00
committed by GitHub
parent e5072f1eef
commit fe09410ed4
150 changed files with 366 additions and 509 deletions

View File

@@ -1,7 +1,6 @@
package module_test
import (
"context"
"io/fs"
"path/filepath"
"runtime"
@@ -106,7 +105,7 @@ func TestManager_Register(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
m, err := module.NewManager(context.Background(), module.Options{
m, err := module.NewManager(t.Context(), module.Options{
Dir: tt.moduleDir,
EnabledModules: tt.enabledModules,
})