From 44cfaba76bf87f687712317fbbaa145fe02ba1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 17 Oct 2023 23:27:14 +0200 Subject: [PATCH] testing: expose testing.TB in DBTest instead of full *testing.T Reduce the methods exposed by DBTest to the subset of testing.T exposed in the testing.TB interface. --- driver_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver_test.go b/driver_test.go index f46d38df6..d1261f0ac 100644 --- a/driver_test.go +++ b/driver_test.go @@ -82,7 +82,7 @@ func init() { } type DBTest struct { - *testing.T + testing.TB db *sql.DB }