Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix(integration): move waitgroup Add(1) outside goroutine to avoid potential issue (#10070)
CYJiange7019c94554e
diff --git a/integration/max_queue_test.go b/integration/max_queue_test.goindex c316aa62b..502795311 100644--- a/integration/max_queue_test.go+++ b/integration/max_queue_test.go@@ -52,8 +52,8 @@ func TestMaxQueue(t *testing.T) {embedCtx := ctxvar genwg sync.WaitGroup+ genwg.Add(1)go func() {- genwg.Add(1)defer genwg.Done()slog.Info("Starting generate request")DoGenerate(ctx, t, client, req, resp, 45*time.Second, 5*time.Second)@@ -71,8 +71,8 @@ func TestMaxQueue(t *testing.T) {counterMu := sync.Mutex{}var embedwg sync.WaitGroupfor i := 0; i < threadCount; i++ {+ embedwg.Add(1)go func(i int) {- embedwg.Add(1)defer embedwg.Done()slog.Info("embed started", "id", i)embedReq := api.EmbeddingRequest{