diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-28 03:56:37 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-28 03:56:37 -0400 |
commit | 3eee3febf1ca150de82d17ad89c12a9ff7041c61 (patch) | |
tree | bf6c4070f81f04f1f15ba040a3bc3e5a982dabd4 /cache_test.go | |
parent | 489145d78946ac3ec006117e7c6f242719c6d411 (diff) | |
download | getwtxt-3eee3febf1ca150de82d17ad89c12a9ff7041c61.tar.gz |
expanded push/pullDatabase test
Diffstat (limited to 'cache_test.go')
-rw-r--r-- | cache_test.go | 3 |
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() |