AydarZaynutdinov commented on a change in pull request #16123:
URL: https://github.com/apache/beam/pull/16123#discussion_r762971290
##########
File path: playground/backend/internal/errors/grpc_errors_test.go
##########
@@ -49,21 +72,44 @@ func TestInternalError(t *testing.T) {
func TestInvalidArgumentError(t *testing.T) {
type args struct {
- title string
- message string
+ title string
+ formatMessage string
+ arg []interface{}
}
tests := []struct {
name string
args args
expected string
wantErr bool
}{
- {name: "TestInvalidArgumentError", args: args{title:
"TEST_TITLE", message: "TEST_MESSAGE"},
- expected: "rpc error: code = InvalidArgument desc =
TEST_TITLE: TEST_MESSAGE", wantErr: true},
+ {
+ // Test case with calling InvalidArgumentError method.
Review comment:
Changed comments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]