From ae15bddb157166f66bb4e8b5e086b23f6827def3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D0=B5=D0=B3=20=D0=91=D0=BE=D1=80=D0=BE=D0=B4?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Wed, 11 Feb 2026 20:48:56 +0200 Subject: [PATCH] working commit --- test/file_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/file_test.go b/test/file_test.go index 9f708ad..6ed0dc5 100644 --- a/test/file_test.go +++ b/test/file_test.go @@ -35,7 +35,6 @@ func xxxTestFileOperations(t *testing.T) { var srvport int64 = 10240 + rand.Int63n(1024) srvdir := t.TempDir() - //srvaddr := fmt.Sprintf("127.0.0.1:%d", srvport) filename := `bare.bin?abc=12` @@ -120,7 +119,7 @@ func xxxTestFileOperations(t *testing.T) { fmt.Printf("Response body: %s\n", string(bodyBytes)) } { - fmt.Printf("=== FileExists ===\n") + fmt.Printf("=== FileInfo ===\n") reqPath := filepath.Join(`/v3/api/file`, filename) routePath := `/v3/api/file/{filepath}` @@ -129,7 +128,7 @@ func xxxTestFileOperations(t *testing.T) { hand := srv.Handler() require.NotNil(t, hand) - rout.Head(routePath, hand.FileExists) + rout.Head(routePath, hand.FileInfo) request, err := http.NewRequest("HEAD", reqPath, nil) require.NoError(t, err) @@ -206,7 +205,7 @@ func xxxTestFileOperations(t *testing.T) { hand := srv.Handler() require.NotNil(t, hand) - rout.Head(routePath, hand.FileExists) + rout.Head(routePath, hand.FileInfo) request, err := http.NewRequest("HEAD", reqPath, nil) require.NoError(t, err)