From a6d0dd7d311b440224e4786f74766fcacd40d935 Mon Sep 17 00:00:00 2001 From: Justin Hiemstra Date: Thu, 21 Nov 2024 19:26:09 +0000 Subject: [PATCH] Try passing pelican.timeout as url query param --- local_cache/cache_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/local_cache/cache_test.go b/local_cache/cache_test.go index 16100d938..7588f9c4e 100644 --- a/local_cache/cache_test.go +++ b/local_cache/cache_test.go @@ -375,7 +375,6 @@ func TestLargeFile(t *testing.T) { server_utils.ResetTestState() clientConfig := map[string]interface{}{ - "Transport.ResponseHeaderTimeout": "600s", "Client.MaximumDownloadSpeed": 40 * 1024 * 1024, } test_utils.InitClient(t, clientConfig) @@ -398,7 +397,7 @@ func TestLargeFile(t *testing.T) { size := test_utils.WriteBigBuffer(t, fp, 100) require.NoError(t, err) - tr, err := client.DoGet(ctx, "pelican://"+param.Server_Hostname.GetString()+":"+strconv.Itoa(param.Server_WebPort.GetInt())+"/test/hello_world.txt", + tr, err := client.DoGet(ctx, "pelican://"+param.Server_Hostname.GetString()+":"+strconv.Itoa(param.Server_WebPort.GetInt())+"/test/hello_world.txt?pelican.timeout=600s", filepath.Join(tmpDir, "hello_world.txt"), false, client.WithCaches(cacheUrl)) assert.NoError(t, err) require.Equal(t, 1, len(tr))