summary refs log tree commit diff stats
path: root/svc
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-08 04:32:56 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-08 04:33:24 -0400
commit21e981bb66c0e7a15fd001844601888098a9333a (patch)
tree33ff70d17f38db3a8df81ce38751c33380c54b4c /svc
parent5bfffe1756203cf89030072313057d8583163b4e (diff)
downloadgetwtxt-21e981bb66c0e7a15fd001844601888098a9333a.tar.gz
fixed test to ignore duplicate user add error
Diffstat (limited to 'svc')
-rw-r--r--svc/query_test.go5
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")