refac: removed 7 direct and 12 indirect go modules for custom code instead
This commit is contained in:
1 parent
cfcf108488
commit
c68e9a7858
73 files changed
+2455
-428
No files matched your search
@@ -23,7 +23,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/go-chi/jwtauth/v5"
|
||||
"RenewCMS/api/pkg/authtoken"
|
||||
)
|
||||
|
||||
const downloadPath = "/update/download"
|
||||
@@ -31,7 +31,7 @@ const downloadPath = "/update/download"
|
||||
func newDownloadHTTP(t *testing.T, rig *downloadRig) *updateHarness {
|
||||
t.Helper()
|
||||
validator.InitValidator()
|
||||
token := jwtauth.New("HS256", []byte("test-secret"), nil)
|
||||
token := authtoken.New([]byte("test-secret"))
|
||||
users := newUpdateUserRepo()
|
||||
feed := &fakeReleaseFeed{}
|
||||
now := func() time.Time { return updateTestCheckedAt }
|
||||
|
||||
Reference in new issue
Block a user