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/query_test.go | |
parent | 75e9f55daa3946ae3b51cbcf3204d5131e420a84 (diff) | |
download | getwtxt-0.4.4.tar.gz |
updated internal functionality for registry v0.4.0 v0.4.4
Diffstat (limited to 'svc/query_test.go')
-rw-r--r-- | svc/query_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svc/query_test.go b/svc/query_test.go index 414f99b..5581592 100644 --- a/svc/query_test.go +++ b/svc/query_test.go @@ -55,7 +55,7 @@ func Test_parseQueryOut(t *testing.T) { t.Errorf("Couldn't set up test: %v\n", err) } - twtxtCache.AddUser(nick, urls, "", net.ParseIP("127.0.0.1"), statusmap) + twtxtCache.AddUser(nick, urls, net.ParseIP("127.0.0.1"), statusmap) t.Run("Parsing Status Query", func(t *testing.T) { data, err := twtxtCache.QueryAllStatuses() @@ -89,7 +89,7 @@ func Benchmark_parseQueryOut(b *testing.B) { b.Errorf("Couldn't set up test: %v\n", err) } - twtxtCache.AddUser(nick, urls, "", net.ParseIP("127.0.0.1"), statusmap) + twtxtCache.AddUser(nick, urls, net.ParseIP("127.0.0.1"), statusmap) data, err := twtxtCache.QueryAllStatuses() if err != nil { @@ -186,7 +186,7 @@ func Benchmark_compositeStatusQuery(b *testing.B) { initTestConf() statuses, _, _ := registry.GetTwtxt("https://gbmor.dev/twtxt.txt", nil) parsed, _ := registry.ParseUserTwtxt(statuses, "gbmor", "https://gbmor.dev/twtxt.txt") - _ = twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", "1", net.ParseIP("127.0.0.1"), parsed) + _ = twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", net.ParseIP("127.0.0.1"), parsed) b.ResetTimer() for i := 0; i < b.N; i++ { |