Skip to content

Commit

Permalink
Update how we print
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeebswihart committed Oct 27, 2023
1 parent d234e15 commit cfca1e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/internal_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ func (aw *WorkflowReplayer) replayWorkflowHistory(logger log.Logger, service wor
}
}
}
return fmt.Errorf("replay workflow doesn't return the same result as the last event, resp: %s, last: %s", resp, last)
return fmt.Errorf("replay workflow doesn't return the same result as the last event, resp: %[1]T{%[1]v}, last: %[2]T{%[2]v}", resp, resp, last)
}

func extractHistoryFromFile(jsonfileName string, lastEventID int64) (*historypb.History, error) {
Expand Down
2 changes: 1 addition & 1 deletion test/replaytests/replay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (s *replayTestSuite) TestBadReplayLocalActivity() {
// Test bad history that does not call any local activities
err := replayer.ReplayWorkflowHistoryFromJSONFile(ilog.NewDefaultLogger(), "bad-local-activity.json")
require.Error(s.T(), err)
require.Contains(s.T(), err.Error(), "replay workflow doesn't return the same result as the last event, resp: &RespondWorkflowTaskCompletedRequest")
require.Contains(s.T(), err.Error(), "replay workflow doesn't return the same result as the last event, resp: *workflowservice.RespondWorkflowTaskCompletedRequest")

// Test bad history that calls two local activities
err = replayer.ReplayWorkflowHistoryFromJSONFile(ilog.NewDefaultLogger(), "bad-local-activity-2.json")
Expand Down

0 comments on commit cfca1e0

Please sign in to comment.