unity容器监听
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
776 B

2 years ago
package biz
import (
"context"
"git.gz.internal.jumaiyx.cn/pkg/log"
"testing"
"time"
)
func TestNewBiz(t *testing.T) {
2 years ago
time.Sleep(time.Second * 30)
}
func TestCheck(t *testing.T) {
2 years ago
l := log.DefaultLogger()
2 years ago
build := NewBiz(l)
build.Check(context.TODO())
}
func TestNewBiz_Deployment(t *testing.T) {
l := log.DefaultLogger()
build := NewBiz(l)
wg.Add(2)
2 years ago
go func() {
2 years ago
defer wg.Done()
build.deployment(context.TODO())
2 years ago
}()
2 years ago
go func() {
2 years ago
defer wg.Done()
build.deploymentDel(context.TODO())
2 years ago
}()
2 years ago
wg.Wait()
}
func TestNewBiz_Service(t *testing.T) {
l := log.DefaultLogger()
build := NewBiz(l)
wg.Add(2)
2 years ago
go func() {
2 years ago
defer wg.Done()
build.service(context.TODO())
2 years ago
}()
2 years ago
go func() {
defer wg.Done()
build.serviceDel(context.TODO())
}()
wg.Wait()
2 years ago
}