From 12a6bcef3cff8b8bc980a29b26bd7dc05b4809c9 Mon Sep 17 00:00:00 2001 From: hisham waleed karam Date: Sun, 14 Oct 2018 17:49:16 +0200 Subject: [PATCH] improve TestDBIsAlive --- utils_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils_test.go b/utils_test.go index 60bb682..46804f6 100644 --- a/utils_test.go +++ b/utils_test.go @@ -32,4 +32,7 @@ func TestDBIsAlive(t *testing.T) { connStr = "mysql://" err := DBIsAlive("mysql", connStr) assert.NotNil(t, err) + connStr = "postgresql://dummy:dummy@localhost:5438/dummy_db?sslmode=disable" + pingErr := DBIsAlive("postgres", connStr) + assert.NotNil(t, pingErr) }