Skip to content

Commit

Permalink
Fix integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin committed May 4, 2020
1 parent 5f7230d commit b6466e8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/activity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func newActivities() *Activities {
}

func (a *Activities) RetryTimeoutStableErrorActivity() error {
time.Sleep(time.Second * 3)
time.Sleep(1 * time.Second)
return errFailOnPurpose
}

Expand Down
2 changes: 1 addition & 1 deletion test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func (ts *IntegrationTestSuite) TestLargeQueryResultError() {
ts.Error(err)

ts.IsType(&serviceerror.QueryFailed{}, err)
ts.Equal("query result size (3000046) exceeds limit (2000000)", err.Error())
ts.Equal("query result size (3000027) exceeds limit (2000000)", err.Error())
ts.Nil(value)
}

Expand Down
10 changes: 6 additions & 4 deletions test/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,12 +434,14 @@ func (w *Workflows) ConsistentQueryWorkflow(ctx workflow.Context, delay time.Dur

func (w *Workflows) RetryTimeoutStableErrorWorkflow(ctx workflow.Context) ([]string, error) {
ao := workflow.ActivityOptions{
ScheduleToStartTimeout: time.Second * 2,
StartToCloseTimeout: time.Second * 6,
ScheduleToStartTimeout: 1 * time.Second,
StartToCloseTimeout: 2 * time.Second,
ScheduleToCloseTimeout: 10 * time.Second,
RetryPolicy: &temporal.RetryPolicy{
InitialInterval: time.Second,
InitialInterval: 1 * time.Second,
BackoffCoefficient: 1.0,
MaximumInterval: time.Second,
MaximumInterval: 1 * time.Second,
MaximumAttempts: 3,
},
}
ctx = workflow.WithActivityOptions(ctx, ao)
Expand Down

0 comments on commit b6466e8

Please sign in to comment.