From f0206bd8c8eba462de1391ff16a50cc028afcb47 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Thu, 13 Jun 2024 22:26:16 +0200 Subject: [PATCH] update go/test/endtoend/utils/mysql.go to accept testing.TB again Signed-off-by: Tim Vaillancourt --- go/test/endtoend/utils/mysql.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/go/test/endtoend/utils/mysql.go b/go/test/endtoend/utils/mysql.go index 5b6b226f131..7e3f80c09be 100644 --- a/go/test/endtoend/utils/mysql.go +++ b/go/test/endtoend/utils/mysql.go @@ -21,7 +21,6 @@ import ( "fmt" "os" "path" - "testing" "github.com/stretchr/testify/assert" @@ -132,7 +131,7 @@ func prepareMySQLWithSchema(params mysql.ConnParams, sql string) error { return nil } -func compareVitessAndMySQLResults(t *testing.T, query string, vtQr, mysqlQr *sqltypes.Result, compareColumns bool) { +func compareVitessAndMySQLResults(t TestingT, query string, vtQr, mysqlQr *sqltypes.Result, compareColumns bool) { if vtQr == nil && mysqlQr == nil { return } @@ -188,7 +187,7 @@ func compareVitessAndMySQLResults(t *testing.T, query string, vtQr, mysqlQr *sql t.Error(errStr) } -func compareVitessAndMySQLErrors(t *testing.T, vtErr, mysqlErr error) { +func compareVitessAndMySQLErrors(t TestingT, vtErr, mysqlErr error) { if vtErr != nil && mysqlErr != nil || vtErr == nil && mysqlErr == nil { return }