summary refs log tree commit diff stats
path: root/cache_test.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-04 18:50:49 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-04 18:50:49 -0400
commitdb1dc5d8c2d1557b085b63cb8c511f5a9864b38e (patch)
tree280484dfbd18289ec57042f2d7edfe327b02425b /cache_test.go
parent0590df3c76934157833a7c3dfe65fd725e30a924 (diff)
downloadgetwtxt-db1dc5d8c2d1557b085b63cb8c511f5a9864b38e.tar.gz
updated index.AddUser() calls to reflect new version of registry lib
Diffstat (limited to 'cache_test.go')
-rw-r--r--cache_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache_test.go b/cache_test.go
index fc2d341..2fef6be 100644
--- a/cache_test.go
+++ b/cache_test.go
@@ -45,7 +45,7 @@ func Test_pushpullDatabase(t *testing.T) {
 	if err != nil {
 		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)
+	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()
@@ -93,7 +93,7 @@ func Benchmark_pushDatabase(b *testing.B) {
 			b.Errorf("Couldn't set up benchmark: %v\n", err)
 		}
 
-		twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", net.ParseIP("127.0.0.1"), statusmap)
+		twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", "", net.ParseIP("127.0.0.1"), statusmap)
 	}
 
 	b.ResetTimer()