diff --git a/command/agent/cache_end_to_end_test.go b/command/agent/cache_end_to_end_test.go index dfb8ca63c7..f9727c8c5b 100644 --- a/command/agent/cache_end_to_end_test.go +++ b/command/agent/cache_end_to_end_test.go @@ -3,6 +3,7 @@ package agent import ( "context" "fmt" + "github.com/hashicorp/vault/helper/consts" "io/ioutil" "net" "net/http" @@ -263,7 +264,7 @@ func TestCache_UsingAutoAuthToken(t *testing.T) { // Create a muxer and add paths relevant for the lease cache layer mux := http.NewServeMux() - mux.Handle(consts.CacheClearPath, leaseCache.HandleCacheClear(ctx)) + mux.Handle(consts.AgentPathCacheClear, leaseCache.HandleCacheClear(ctx)) mux.Handle("/", cache.Handler(ctx, cacheLogger, leaseCache, inmemSink)) server := &http.Server{