Skip to content

Commit

Permalink
Refactor: remove key parameter from testvar methods
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin committed Dec 31, 2024
1 parent 480a0f5 commit 318b87f
Show file tree
Hide file tree
Showing 15 changed files with 575 additions and 587 deletions.
1 change: 0 additions & 1 deletion common/rpc/interceptor/logtags/workflow_tags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func TestExtract(t *testing.T) {
)

tv := testvars.New(t)
tv = tv.WithRunID(tv.Any().RunID())
taskToken := tokenspb.Task{
WorkflowId: tv.WorkflowID(),
RunId: tv.RunID(),
Expand Down
5 changes: 0 additions & 5 deletions common/testing/testvars/any.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
package testvars

import (
"github.com/pborman/uuid"
commonpb "go.temporal.io/api/common/v1"
failurepb "go.temporal.io/api/failure/v1"
"go.temporal.io/server/common/payload"
Expand Down Expand Up @@ -79,7 +78,3 @@ func (a Any) ApplicationFailure() *failurepb.Failure {
}},
}
}

func (a Any) RunID() string {
return uuid.New()
}
Loading

0 comments on commit 318b87f

Please sign in to comment.