chore: use functional options to define the hook for when to create a new store

This commit is contained in:
Manuel de la Peña
2025-08-29 10:06:08 +02:00
parent 71fc8de907
commit 253aa04087
2 changed files with 88 additions and 30 deletions

View File

@@ -134,7 +134,7 @@ func Test_MYSQL_Non_UTF8(t *testing.T) {
func TestMySQLStorageTCK(t *testing.T) {
// The TCK needs the concrete type of the storage and the driver type returned by the Conn method.
s, err := tck.New[*Storage, *sql.DB](context.Background(), t, &MySQLStorageTCK{}, tck.PerTest)
s, err := tck.New[*Storage, *sql.DB](context.Background(), t, &MySQLStorageTCK{}, tck.PerTest())
require.NoError(t, err)
suite.Run(t, &s)