初始化

初始化项目
This commit is contained in:
truewhile
2026-08-23 22:12:32 +08:00
parent 0bcb1fec87
commit 71bf60c69c
631 changed files with 2121 additions and 76050 deletions
+4 -4
View File
@@ -12,7 +12,7 @@ import (
)
func TestSchedulerRunNowAsyncSurvivesCallerCancellation(t *testing.T) {
scheduler := NewSchedulerService(zap.NewNop(), nil, nil, nil, nil, nil, nil, "")
scheduler := NewSchedulerService(zap.NewNop(), nil, nil, nil, nil, nil, "")
started := make(chan struct{})
release := make(chan struct{})
finished := make(chan struct{})
@@ -66,7 +66,7 @@ func TestSchedulerRunNowAsyncSurvivesCallerCancellation(t *testing.T) {
}
func TestSchedulerRunNowAsyncRejectsDuplicateRun(t *testing.T) {
scheduler := NewSchedulerService(zap.NewNop(), nil, nil, nil, nil, nil, nil, "")
scheduler := NewSchedulerService(zap.NewNop(), nil, nil, nil, nil, nil, "")
started := make(chan struct{})
release := make(chan struct{})
scheduler.jobs = []*scheduledJob{{
@@ -90,7 +90,7 @@ func TestSchedulerRunNowAsyncRejectsDuplicateRun(t *testing.T) {
}
func TestSchedulerStartDoesNotRegisterSubscriptionPullJob(t *testing.T) {
scheduler := NewSchedulerService(zap.NewNop(), nil, nil, nil, nil, nil, nil, "")
scheduler := NewSchedulerService(zap.NewNop(), nil, nil, nil, nil, nil, "")
ctx, cancel := context.WithCancel(t.Context())
cancel()
scheduler.Start(ctx)
@@ -104,7 +104,7 @@ func TestSchedulerStartDoesNotRegisterSubscriptionPullJob(t *testing.T) {
}
func TestSchedulerLoopWaitsIntervalAfterSlowRun(t *testing.T) {
scheduler := NewSchedulerService(zap.NewNop(), nil, nil, nil, nil, nil, nil, "")
scheduler := NewSchedulerService(zap.NewNop(), nil, nil, nil, nil, nil, "")
ctx, cancel := context.WithCancel(t.Context())
defer cancel()