Fix agent test (#6281)

This commit is contained in:
Jim Kalafut
2019-02-21 21:24:16 -08:00
committed by GitHub
parent 90898851f5
commit 143412d58e

View File

@@ -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{