diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-19 19:39:08 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-19 19:39:08 -0400 |
commit | 37142b5d78d2eace9fef79d20793b0d42965dae5 (patch) | |
tree | 3c0c93fc5daba9916cf00d9dfce1007927694f8f /svc/post_test.go | |
parent | 75e9f55daa3946ae3b51cbcf3204d5131e420a84 (diff) | |
download | getwtxt-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.go | 6 |
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() } } |