The check performed by checkMySQL() is insufficient - it needs to also call db.Ping() and make sure it succeeds. It should also do an appropriate number of retries.
Afterwards, if checkMySQL() fails then the exit code in TestMain MUST be something other than 0.
https://github.com/hyperledger/aries-framework-go/blob/e4ed522212cb5a4f49eeb06f2c9e882aa389cb60/pkg/storage/mysql/mysqlstore_test.go#L37
The check performed by
checkMySQL()
is insufficient - it needs to also calldb.Ping()
and make sure it succeeds. It should also do an appropriate number of retries.Afterwards, if
checkMySQL()
fails then the exit code inTestMain
MUST be something other than0
.