diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-08 04:32:56 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-08 04:33:24 -0400 |
commit | 21e981bb66c0e7a15fd001844601888098a9333a (patch) | |
tree | 33ff70d17f38db3a8df81ce38751c33380c54b4c | |
parent | 5bfffe1756203cf89030072313057d8583163b4e (diff) | |
download | getwtxt-21e981bb66c0e7a15fd001844601888098a9333a.tar.gz |
fixed test to ignore duplicate user add error
-rw-r--r-- | svc/query_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svc/query_test.go b/svc/query_test.go index 477808b..3e7e5d3 100644 --- a/svc/query_test.go +++ b/svc/query_test.go @@ -84,10 +84,7 @@ func Test_compositeStatusQuery(t *testing.T) { if err != nil { t.Errorf("%v\n", err) } - err = twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", "1", net.ParseIP("127.0.0.1"), parsed) - if err != nil { - t.Errorf("%v\n", err) - } + _ = twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", "1", net.ParseIP("127.0.0.1"), parsed) t.Run("Composite Query Test", func(t *testing.T) { out1, err := twtxtCache.QueryInStatus("sqlite") |