Skip to content

Commit 9f1aa62

Browse files
chore(postgres): use require.NotNil instead of assert.NotNil (#3252)
* chore: use require.NotNil instead of assert.NotNil * chore: remove use of assert --------- Co-authored-by: Manuel de la Peña <[email protected]>
1 parent 2fb2865 commit 9f1aa62

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/postgres/postgres_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
_ "github.com/jackc/pgx/v5/stdlib"
1818
_ "github.com/lib/pq"
1919
"github.com/mdelapenya/tlscert"
20-
"github.com/stretchr/testify/assert"
2120
"github.com/stretchr/testify/require"
2221

2322
"github.com/testcontainers/testcontainers-go"
@@ -237,12 +236,12 @@ func TestWithSSL(t *testing.T) {
237236

238237
db, err := sql.Open("postgres", connStr)
239238
require.NoError(t, err)
240-
assert.NotNil(t, db)
239+
require.NotNil(t, db)
241240
defer db.Close()
242241

243242
result, err := db.Exec("SELECT * FROM testdb;")
244243
require.NoError(t, err)
245-
assert.NotNil(t, result)
244+
require.NotNil(t, result)
246245
}
247246

248247
func TestSSLValidatesKeyMaterialPath(t *testing.T) {

0 commit comments

Comments
 (0)