Skip to content

Commit a54483d

Browse files
authored
Fix flaky jitter test (#3814)
1 parent c24c83f commit a54483d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/history/workflow/task_generator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func TestTaskGeneratorImpl_GenerateWorkflowCloseTasks(t *testing.T) {
154154
p.Retention = 24 * time.Hour
155155
p.ArchivalProcessorArchiveDelay = 12 * time.Hour
156156

157-
p.ExpectedArchiveExecutionTaskVisibilityTimestamp = time.Unix(0, 0).Add(6 * time.Hour)
157+
p.ExpectedArchiveExecutionTaskVisibilityTimestamp = time.Unix(0, 0).Add(p.ArchivalProcessorArchiveDelay)
158158
p.ExpectCloseExecutionVisibilityTask = true
159159
p.ExpectArchiveExecutionTask = true
160160
},

0 commit comments

Comments
 (0)