From 47678994460667ace10747ee72fb4250a1455a60 Mon Sep 17 00:00:00 2001 From: szibis Date: Sat, 17 Oct 2026 11:37:06 +0200 Subject: [PATCH] test: the peer cache in the stale-disk warm test carries the peer token, as the proxy configures it The test gave the proxy a peer token but built its peer cache without one. Any request the peer cache sent itself (a get or push for a key the fake peer owns on the hash ring, which depends on the random test port) reached the fake peer with no token and failed the test. cmd/proxy sets the same token on both, so the test now does too. --- internal/proxy/label_surface_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/proxy/label_surface_test.go b/internal/proxy/label_surface_test.go index 01f06a36..747d1a20 100644 --- a/internal/proxy/label_surface_test.go +++ b/internal/proxy/label_surface_test.go @@ -546,6 +546,7 @@ func TestLabelSurface_LabelValuesIndexStartupWarmsFromPeersWhenDiskStale(t *test DiscoveryType: "static", StaticPeers: peerAddr, Timeout: 800 * time.Millisecond, + AuthToken: "shared-secret", }) localCache := cache.New(5*time.Minute, 1000)