mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
fix: do not create two mysql containers
This commit is contained in:
@@ -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())
|
||||||
|
Reference in New Issue
Block a user