Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: increase timeouts in workflow_syncer_test #15818

Merged
merged 3 commits into from
Jan 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: lower check interval to 1s
  • Loading branch information
erikburt committed Jan 2, 2025
commit 280602f92666ece4ca427b34275eb52fb98ff8e4
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func Test_EventHandlerStateSync(t *testing.T) {
require.Eventually(t, func() bool {
numEvents := len(testEventHandler.GetEvents())
return numEvents == numberWorkflows
}, tests.WaitTimeout(t), 100*time.Millisecond)
}, tests.WaitTimeout(t), time.Second)

for _, event := range testEventHandler.GetEvents() {
assert.Equal(t, syncer.WorkflowRegisteredEvent, event.GetEventType())
Expand Down Expand Up @@ -217,7 +217,7 @@ func Test_EventHandlerStateSync(t *testing.T) {
}

return false
}, tests.WaitTimeout(t), 100*time.Millisecond)
}, tests.WaitTimeout(t), time.Second)
}

func Test_InitialStateSync(t *testing.T) {
Expand Down Expand Up @@ -277,7 +277,7 @@ func Test_InitialStateSync(t *testing.T) {

require.Eventually(t, func() bool {
return len(testEventHandler.GetEvents()) == numberWorkflows
}, tests.WaitTimeout(t), 100*time.Millisecond)
}, tests.WaitTimeout(t), time.Second)

for _, event := range testEventHandler.GetEvents() {
assert.Equal(t, syncer.WorkflowRegisteredEvent, event.GetEventType())
Expand Down Expand Up @@ -381,7 +381,7 @@ func Test_SecretsWorker(t *testing.T) {
lggr.Debugf("got secrets %v", secrets)
require.NoError(t, err)
return secrets == wantContents
}, tests.WaitTimeout(t), 100*time.Millisecond)
}, tests.WaitTimeout(t), time.Second)
}

func Test_RegistrySyncer_WorkflowRegistered_InitiallyPaused(t *testing.T) {
Expand Down Expand Up @@ -460,7 +460,7 @@ func Test_RegistrySyncer_WorkflowRegistered_InitiallyPaused(t *testing.T) {
owner := strings.ToLower(backendTH.ContractsOwner.From.Hex()[2:])
_, err := orm.GetWorkflowSpec(ctx, owner, "test-wf")
return err == nil
}, tests.WaitTimeout(t), 100*time.Millisecond)
}, tests.WaitTimeout(t), time.Second)
}

type mockService struct{}
Expand Down Expand Up @@ -568,7 +568,7 @@ func Test_RegistrySyncer_WorkflowRegistered_InitiallyActivated(t *testing.T) {
owner := strings.ToLower(backendTH.ContractsOwner.From.Hex()[2:])
_, err = orm.GetWorkflowSpec(ctx, owner, "test-wf")
return err == nil
}, tests.WaitTimeout(t), 100*time.Millisecond)
}, tests.WaitTimeout(t), time.Second)
}

func updateAuthorizedAddress(
Expand Down
Loading