Skip to content

Commit 499f31c

Browse files
committed
Refactor: remove key parameter from testvar methods
1 parent 480a0f5 commit 499f31c

15 files changed

+577
-587
lines changed

common/rpc/interceptor/logtags/workflow_tags_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ func TestExtract(t *testing.T) {
4949
)
5050

5151
tv := testvars.New(t)
52-
tv = tv.WithRunID(tv.Any().RunID())
5352
taskToken := tokenspb.Task{
5453
WorkflowId: tv.WorkflowID(),
5554
RunId: tv.RunID(),

common/testing/testvars/any.go

-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
package testvars
2626

2727
import (
28-
"github.com/pborman/uuid"
2928
commonpb "go.temporal.io/api/common/v1"
3029
failurepb "go.temporal.io/api/failure/v1"
3130
"go.temporal.io/server/common/payload"
@@ -79,7 +78,3 @@ func (a Any) ApplicationFailure() *failurepb.Failure {
7978
}},
8079
}
8180
}
82-
83-
func (a Any) RunID() string {
84-
return uuid.New()
85-
}

0 commit comments

Comments
 (0)