improve UT for package gcron (#1966)

This commit is contained in:
John Guo
2022-07-04 21:18:20 +08:00
committed by GitHub
parent 40e6b2b0f1
commit 047c90466d
4 changed files with 39 additions and 25 deletions

View File

@ -39,3 +39,8 @@ func init() {
func IsDebugEnabled() bool {
return isDebugEnabled
}
// SetDebugEnabled enables/disables the internal debug info.
func SetDebugEnabled(enabled bool) {
isDebugEnabled = enabled
}