chore: upgrade Go to 1.24 (#22242)

Signed-off-by: sivchari <shibuuuu5@gmail.com>
This commit is contained in:
sivchari
2025-03-10 23:14:41 +09:00
committed by GitHub
parent bd1018af5e
commit 922d080ae5
118 changed files with 1412 additions and 1479 deletions

View File

@@ -127,7 +127,7 @@ func TestInit(t *testing.T) {
assert.NotNil(t, nc)
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(t.Context(), 10*time.Second)
defer cancel()
err = nc.Init(ctx)
@@ -160,7 +160,7 @@ func TestInitTimeout(t *testing.T) {
assert.NotNil(t, nc)
// Use a short timeout to simulate a timeout during cache synchronization
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Millisecond)
ctx, cancel := context.WithTimeout(t.Context(), 1*time.Millisecond)
defer cancel()
err = nc.Init(ctx)