diff --git a/pkg/parser/remote_fetch_integration_test.go b/pkg/parser/remote_fetch_integration_test.go index 9af5ed629e0..e32d2f70609 100644 --- a/pkg/parser/remote_fetch_integration_test.go +++ b/pkg/parser/remote_fetch_integration_test.go @@ -197,7 +197,7 @@ func TestCheckRemoteSymlink(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - target, isSymlink, err := checkRemoteSymlink(context.Background(), client, "github", "gitignore", tt.dirPath, "main") + target, isSymlink, err := checkRemoteSymlink(t.Context(), client, "github", "gitignore", tt.dirPath, "main") if err != nil { skipOnAuthError(t, err) if !tt.wantErr { @@ -224,7 +224,7 @@ func TestResolveRemoteSymlinksNoSymlinks(t *testing.T) { skipOnAuthError(t, err) return } - _, err = resolveRemoteSymlinks(context.Background(), client, "github", "gitignore", "Global/Perl.gitignore", "main") + _, err = resolveRemoteSymlinks(t.Context(), client, "github", "gitignore", "Global/Perl.gitignore", "main") require.Error(t, err, "Expected error when no symlinks found") skipOnAuthError(t, err)