From 3eee3febf1ca150de82d17ad89c12a9ff7041c61 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 28 May 2019 03:56:37 -0400 Subject: expanded push/pullDatabase test --- cache_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cache_test.go b/cache_test.go index cb92c38..fc2d341 100644 --- a/cache_test.go +++ b/cache_test.go @@ -46,6 +46,9 @@ func Test_pushpullDatabase(t *testing.T) { t.Errorf("Couldn't set up test: %v\n", err) } twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", net.ParseIP("127.0.0.1"), statusmap) + remoteRegistries.Mu.Lock() + remoteRegistries.List = append(remoteRegistries.List, "https://twtxt.tilde.institute/api/plain/users") + remoteRegistries.Mu.Unlock() t.Run("Push to Database", func(t *testing.T) { err := pushDatabase() -- cgit 1.4.1-2-gfad0