mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
chore: upgrade Go to 1.24 (#22242)
Signed-off-by: sivchari <shibuuuu5@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user