From f1003427209830eb78bc34614d532b92d3c80984 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 6 Mar 2026 21:23:16 +0300 Subject: [PATCH] router: remove unused getCount from TestSingleflightDedup Signed-off-by: NotAShelf Change-Id: I22611938e3ef99a749905638288e4f9f6a6a6964 --- internal/router/router_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/router/router_test.go b/internal/router/router_test.go index 75d1d25..6d9ad41 100644 --- a/internal/router/router_test.go +++ b/internal/router/router_test.go @@ -178,14 +178,13 @@ func TestResolveWithDownUpstream(t *testing.T) { } func TestSingleflightDedup(t *testing.T) { - var headCount, getCount int32 + var headCount int32 ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method == http.MethodHead { atomic.AddInt32(&headCount, 1) time.Sleep(30 * time.Millisecond) // ensure goroutines overlap w.WriteHeader(http.StatusOK) } else { - atomic.AddInt32(&getCount, 1) w.Header().Set("Content-Type", "text/x-nix-narinfo") fmt.Fprintln(w, "StorePath: /nix/store/abc123-test") }