From dd3e0556b53af06379bd7cb7136879299541010c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Omar=20Vergara=20P=C3=A9rez?= Date: Mon, 14 Aug 2023 14:17:54 -0600 Subject: [PATCH] test(client): add some validations to the test --- pkg/client/client_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index d3be382..4ffec20 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -5,14 +5,10 @@ import ( "os" "testing" - // mysql driver. _ "github.com/go-sql-driver/mysql" - // postgres driver. _ "github.com/lib/pq" - // sqlite driver. - _ "modernc.org/sqlite" - "github.com/stretchr/testify/assert" + _ "modernc.org/sqlite" "github.com/danvergara/dblab/pkg/command" "github.com/danvergara/dblab/pkg/drivers" @@ -334,6 +330,7 @@ func TestMetadata(t *testing.T) { m, err := c.Metadata("products") assert.NoError(t, err) + assert.NotNil(t, m) // Total count. assert.Equal(t, m.TotalPages, 1)