summary refs log tree commit diff stats
path: root/svc/post_test.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-18 23:32:46 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-18 23:32:46 -0400
commit41398b172a5fd908195a31fe1cd1e727eac95051 (patch)
treefd22fc061476aadd61e648dbb4fc198dd6565b32 /svc/post_test.go
parentc5daf914198948ef96cb463641ecc734471bcdd5 (diff)
downloadgetwtxt-41398b172a5fd908195a31fe1cd1e727eac95051.tar.gz
changes related to registry-v0.3.0 v0.4.3
Diffstat (limited to 'svc/post_test.go')
-rw-r--r--svc/post_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/svc/post_test.go b/svc/post_test.go
index cee324c..1c7e9b5 100644
--- a/svc/post_test.go
+++ b/svc/post_test.go
@@ -46,7 +46,7 @@ var apiPostUserCases = []struct {
 func Test_apiPostUser(t *testing.T) {
 	initTestConf()
 	portnum := fmt.Sprintf(":%v", confObj.Port)
-	twtxtCache = registry.NewIndex()
+	twtxtCache = registry.NewIndex(nil)
 
 	for _, tt := range apiPostUserCases {
 		t.Run(tt.name, func(t *testing.T) {
@@ -78,7 +78,7 @@ func Test_apiPostUser(t *testing.T) {
 func Benchmark_apiPostUser(b *testing.B) {
 	initTestConf()
 	portnum := fmt.Sprintf(":%v", confObj.Port)
-	twtxtCache = registry.NewIndex()
+	twtxtCache = registry.NewIndex(nil)
 
 	params := url.Values{}
 	params.Set("url", "https://gbmor.dev/twtxt.txt")
@@ -91,7 +91,7 @@ func Benchmark_apiPostUser(b *testing.B) {
 		apiEndpointPOSTHandler(rr, req)
 
 		b.StopTimer()
-		twtxtCache = registry.NewIndex()
+		twtxtCache = registry.NewIndex(nil)
 		b.StartTimer()
 	}
 }