about 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-19 19:39:08 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-19 19:39:08 -0400
commit37142b5d78d2eace9fef79d20793b0d42965dae5 (patch)
tree3c0c93fc5daba9916cf00d9dfce1007927694f8f /svc/post_test.go
parent75e9f55daa3946ae3b51cbcf3204d5131e420a84 (diff)
downloadgetwtxt-37142b5d78d2eace9fef79d20793b0d42965dae5.tar.gz
updated internal functionality for registry v0.4.0 v0.4.4
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 1c7e9b5..87db88d 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(nil)
+	twtxtCache = registry.New(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(nil)
+	twtxtCache = registry.New(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(nil)
+		twtxtCache = registry.New(nil)
 		b.StartTimer()
 	}
 }