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

[Scanner] handle current execution to read from blobstore #3435

Merged
merged 10 commits into from
Aug 5, 2020
Prev Previous commit
Next Next commit
[Scanner] Use CurrentExecution instead of base one (#3421)
  • Loading branch information
mkolodezny committed Aug 4, 2020
commit 53da38c0f0ebf0f0e9b3a7b8fa2671809f2cab23
4 changes: 2 additions & 2 deletions common/reconciliation/common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ func ExecutionOpen(execution interface{}) bool {
// getExecution returns base Execution
func getExecution(execution interface{}) *Execution {
switch e := execution.(type) {
case *Execution:
return e
case *CurrentExecution:
return &e.Execution
case *ConcreteExecution:
return &e.Execution
default:
Expand Down
2 changes: 1 addition & 1 deletion common/reconciliation/common/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ func (s *UtilSuite) TestDeleteExecution() {
execManager.On("DeleteCurrentWorkflowExecution", mock.Anything).Return(tc.deleteCurrentErr).Once()
}
pr := NewPersistenceRetryer(execManager, nil)
result := DeleteExecution(&Execution{}, pr)
result := DeleteExecution(&ConcreteExecution{}, pr)
s.Equal(tc.expectedFixResult, result)
}
}
Expand Down