Skip to content

Commit

Permalink
fix example of test
Browse files Browse the repository at this point in the history
  • Loading branch information
vikstrous committed Apr 21, 2024
1 parent 86fe9a3 commit 05bf268
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,12 @@ c, err := tempts.Dial(client.Options{})
if err != nil {
t.Fatal(err)
}
workflowImpl := exampleWorkflowType.WithImplementation(exampleWorkflow)
historiesData, err = tempts.GetWorkflowHistoriesBundle(ctx, c, workflowImpl)
historiesData, err = tempts.GetWorkflowHistoriesBundle(ctx, c, exampleWorkflowType)
if err != nil {
t.Fatal(err)
}
// Now store historiesData somewhere! (Or don't and make sure your test is always connected to a temporal instance with example workflow runs)
err := tempts.ReplayWorkflow(historiesData, workflowImpl)
err := tempts.ReplayWorkflow(historiesData, exampleWorkflow)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 05bf268

Please sign in to comment.