summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-28 03:56:37 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-28 03:56:37 -0400
commit3eee3febf1ca150de82d17ad89c12a9ff7041c61 (patch)
treebf6c4070f81f04f1f15ba040a3bc3e5a982dabd4
parent489145d78946ac3ec006117e7c6f242719c6d411 (diff)
downloadgetwtxt-3eee3febf1ca150de82d17ad89c12a9ff7041c61.tar.gz
expanded push/pullDatabase test
-rw-r--r--cache_test.go3
1 files changed, 3 insertions, 0 deletions
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()