From e539d23e6499b0505f8217a875cc3c94c6e01566 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Sun, 9 Jun 2019 23:26:18 -0400 Subject: handler unit tests finished --- svc/init_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'svc/init_test.go') diff --git a/svc/init_test.go b/svc/init_test.go index b2fcd9a..51f72e2 100644 --- a/svc/init_test.go +++ b/svc/init_test.go @@ -93,6 +93,7 @@ func testConfig() { } func mockRegistry() { + twtxtCache = registry.NewIndex() statuses, _, _ := registry.GetTwtxt("https://gbmor.dev/twtxt.txt") parsed, _ := registry.ParseUserTwtxt(statuses, "gbmor", "https://gbmor.dev/twtxt.txt") _ = twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", "1", net.ParseIP("127.0.0.1"), parsed) -- cgit 1.4.1-2-gfad0