Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package cron_server
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestCronInstance(t *testing.T) {
|
||||
t.Run("Test cron instance init", func(t *testing.T) {
|
||||
instance := CronInstance()
|
||||
if instance == nil {
|
||||
t.Error("Cron Instance init fail.")
|
||||
}
|
||||
instance1 := CronInstance()
|
||||
if instance != instance1 {
|
||||
t.Error("Cron Instance is change.")
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user