diff --git a/command/agent/http_test.go b/command/agent/http_test.go
index <HASH>..<HASH> 100644
--- a/command/agent/http_test.go
+++ b/command/agent/http_test.go
@@ -25,6 +25,7 @@ func makeHTTPServer(t *testing.T) (string, *HTTPServer) {
 	if err := os.Mkdir(uiDir, 755); err != nil {
 		t.Fatalf("err: %v", err)
 	}
+	conf.UiDir = uiDir
 	servers, err := NewHTTPServers(agent, conf, agent.logOutput)
 	if err != nil {
 		t.Fatalf("err: %v", err)
agent: Fixing UiDir in test