Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin committed Jan 17, 2025
1 parent a75923a commit 0f31234
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 6 additions & 3 deletions tests/archival_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ func TestArchivalSuite(t *testing.T) {
}

func (s *ArchivalSuite) SetupSuite() {
dynamicConfigOverrides :=map[dynamicconfig.Key]any{
dynamicconfig.ArchivalProcessorArchiveDelay.Key(): time.Duration(0),
}s.FunctionalTestSuite.SetupSuiteWithDefaultCluster(testcore.WithDynamicConfigOverrides(dynamicConfigOverrides),
dynamicConfigOverrides := map[dynamicconfig.Key]any{
dynamicconfig.ArchivalProcessorArchiveDelay.Key(): time.Duration(0),
}

s.FunctionalTestSuite.SetupSuiteWithDefaultCluster(
testcore.WithDynamicConfigOverrides(dynamicConfigOverrides),
testcore.WithArchivalEnabled(),
)

Expand Down
12 changes: 6 additions & 6 deletions tests/workflow_delete_execution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ func (s *WorkflowDeleteExecutionSuite) TestDeleteWorkflowExecution_CompetedWorkf
Execution: we,
},
)
var invalidArgumentErr *serviceerror.InvalidArgument
s.ErrorAs(err, &invalidArgumentErr)
var notFoundErr *serviceerror.NotFound
s.ErrorAs(err, &notFoundErr)
s.Nil(historyResponse)

s.Eventually(
Expand Down Expand Up @@ -300,8 +300,8 @@ func (s *WorkflowDeleteExecutionSuite) TestDeleteWorkflowExecution_RunningWorkfl
Execution: we,
},
)
var invalidArgumentErr *serviceerror.InvalidArgument
s.ErrorAs(err, &invalidArgumentErr)
var notFoundErr *serviceerror.NotFound
s.ErrorAs(err, &notFoundErr)
s.Nil(historyResponse)

s.Eventually(
Expand Down Expand Up @@ -429,8 +429,8 @@ func (s *WorkflowDeleteExecutionSuite) TestDeleteWorkflowExecution_JustTerminate
Execution: we,
},
)
var invalidArgumentErr *serviceerror.InvalidArgument
s.ErrorAs(err, &invalidArgumentErr)
var notFoundErr *serviceerror.NotFound
s.ErrorAs(err, &notFoundErr)
s.Nil(historyResponse)

s.Eventually(
Expand Down

0 comments on commit 0f31234

Please sign in to comment.