diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-18 23:32:46 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-18 23:32:46 -0400 |
commit | 41398b172a5fd908195a31fe1cd1e727eac95051 (patch) | |
tree | fd22fc061476aadd61e648dbb4fc198dd6565b32 /svc/post_test.go | |
parent | c5daf914198948ef96cb463641ecc734471bcdd5 (diff) | |
download | getwtxt-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.go | 6 |
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() } } |