Skip to content

Commit 0adbbea

Browse files
committed
some clues
1 parent 7062c15 commit 0adbbea

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

chaos_tests/chaos_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ func TestChaosWorkflow(t *testing.T) {
244244
// Run multiple workflows
245245
numWorkflows := 10000
246246
for i := range numWorkflows {
247+
if i%100 == 0 {
248+
t.Logf("Starting workflow %d/%d", i, numWorkflows)
249+
}
247250
handle, err := dbos.RunWorkflow(dbosCtx, workflow, i)
248251
require.NoError(t, err, "failed to start workflow %d", i)
249252

@@ -285,6 +288,9 @@ func TestChaosRecv(t *testing.T) {
285288
// Run multiple workflows with send/recv
286289
numWorkflows := 10000
287290
for i := range numWorkflows {
291+
if i%100 == 0 {
292+
t.Logf("Starting workflow %d/%d", i, numWorkflows)
293+
}
288294
handle, err := dbos.RunWorkflow(dbosCtx, recvWorkflow, "")
289295
require.NoError(t, err, "failed to start workflow %d", i)
290296

@@ -337,6 +343,9 @@ func TestChaosEvents(t *testing.T) {
337343
// Run multiple workflows with events
338344
numWorkflows := 5000
339345
for i := range numWorkflows {
346+
if i%100 == 0 {
347+
t.Logf("Starting workflow %d/%d", i, numWorkflows)
348+
}
340349
wfID := uuid.NewString()
341350

342351
// Start workflow with specific ID
@@ -425,6 +434,9 @@ func TestChaosQueues(t *testing.T) {
425434
// Run multiple workflows
426435
numWorkflows := 30
427436
for i := range numWorkflows {
437+
if i%10 == 0 {
438+
t.Logf("Starting workflow %d/%d", i, numWorkflows)
439+
}
428440
// Enqueue the main workflow
429441
handle, err := dbos.RunWorkflow(dbosCtx, workflow, i, dbos.WithQueue(queue.Name))
430442
require.NoError(t, err, "failed to enqueue workflow %d", i)

0 commit comments

Comments
 (0)