Skip to content

Commit

Permalink
Address flaky tests (#1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns authored Aug 21, 2024
1 parent 1fe6141 commit a31f86d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/internal_workflow_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ func (w *workflowClientInterceptor) UpdateWorkflow(
if ctx.Err() != nil {
return nil, NewWorkflowUpdateServiceTimeoutOrCanceledError(err)
}
if code := status.Code(err); code == codes.Canceled || code == codes.DeadlineExceeded {
if status := serviceerror.ToStatus(err); status.Code() == codes.Canceled || status.Code() == codes.DeadlineExceeded {
return nil, NewWorkflowUpdateServiceTimeoutOrCanceledError(err)
}
return nil, err
Expand Down
4 changes: 4 additions & 0 deletions test/worker_versioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,8 @@ func (ts *WorkerVersioningTestSuite) TestReachabilityUnversionedWorkerWithRules(
}

func (ts *WorkerVersioningTestSuite) TestReachabilityVersions() {
// Skip this test because it is flaky with server 1.25.0, versioning api is also actively undergoing changes
ts.T().SkipNow()
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()

Expand Down Expand Up @@ -717,6 +719,8 @@ func (ts *WorkerVersioningTestSuite) TestReachabilityVersions() {
}

func (ts *WorkerVersioningTestSuite) TestReachabilityVersionsWithRules() {
// Skip this test because it is flaky with server 1.25.0, versioning api is also actively undergoing changes
ts.T().SkipNow()
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()

Expand Down

0 comments on commit a31f86d

Please sign in to comment.