diff --git a/history-server/main.go b/history-server/main.go index 13d141f..ecf57a8 100644 --- a/history-server/main.go +++ b/history-server/main.go @@ -424,7 +424,6 @@ func rebuildDashySections() { } // 收集所有导航项(排除历史访问 section 本身),带 host 访问量 - hv := hostVisits() navVisits := loadNavVisits() // 导航项点击计数:常用服务的唯一依据 type cand struct { diff --git a/history-server/main_test.go b/history-server/main_test.go index 5e3588d..60b2a21 100644 --- a/history-server/main_test.go +++ b/history-server/main_test.go @@ -1,6 +1,10 @@ package main -import "testing" +import ( + "os" + "path/filepath" + "testing" +) func TestFriendlyHistoryTitle(t *testing.T) { cases := []struct {