fix: do not create two mysql containers

This commit is contained in:
Manuel de la Peña
2025-04-15 20:16:04 +02:00
parent 3ab20cabab
commit 698ae8a390

View File

@@ -62,12 +62,6 @@ func mustStartMySQL(t testing.TB) *mysql.MySQLContainer {
} }
func Test_MYSQL_New(t *testing.T) { func Test_MYSQL_New(t *testing.T) {
testStore := newTestStore(t)
defer testStore.Close()
require.True(t, testStore.db != nil)
require.NoError(t, testStore.Close())
c := mustStartMySQL(t) c := mustStartMySQL(t)
dsn, err := c.ConnectionString(context.Background()) dsn, err := c.ConnectionString(context.Background())