From e3d69d3cfa6ed67b4218ef2a2f9c3d491e4a915f Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Mon, 5 Dec 2022 21:01:08 -0600 Subject: [PATCH] Fix lint --- pkg/client/client_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index e9304b4..1aa194d 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -361,6 +361,7 @@ func testUpdateQuery(t *testing.T) { t.Run("updating data", func(t *testing.T) { // Add new row _, err := testClient.db.Exec("INSERT INTO books (id, title) VALUES (8888, 'Test Book'), (8889, 'Test Book 2')") + assert.NoError(t, err) // Update without return values res, err := testClient.Query("UPDATE books SET title = 'Foo' WHERE id >= 8888 AND id <= 8889") @@ -379,6 +380,7 @@ func testUpdateQuery(t *testing.T) { t.Run("deleting data", func(t *testing.T) { // Add new row _, err := testClient.db.Exec("INSERT INTO books (id, title) VALUES (9999, 'Test Book')") + assert.NoError(t, err) // Delete the existing row res, err := testClient.Query("DELETE FROM books WHERE id = 9999")