Update Go version to 1.24 (#3167)

* Update Go version to 1.24
* Update golangci-lint version
* Add envtest to tool
* Add dashboard linter as a tool
* Uset t.Cleanup

---------

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2025-02-14 18:52:08 +05:30
committed by GitHub
parent 5eed09a8fc
commit 7119380716
25 changed files with 530 additions and 128 deletions
@@ -1,7 +1,6 @@
package fscache
import (
"context"
"log"
"testing"
"time"
@@ -157,8 +156,7 @@ func TestFunctionServiceNewCache(t *testing.T) {
},
}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ctx := t.Context()
fsc.AddFunc(ctx, *fsvc, 10, fn.GetRetainPods())
concurrency := 10
+1 -2
View File
@@ -24,8 +24,7 @@ func checkErr(err error) {
}
func TestPoolCache(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ctx := t.Context()
logger := loggerfactory.GetLogger()
concurrency := 5
requestsPerPod := 2