Skip to content

Commit 10d205d

Browse files
committed
fix unit tests
1 parent edb28a2 commit 10d205d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/runner/grpc.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2023 API Testing Authors.
2+
Copyright 2023-2025 API Testing Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -503,7 +503,7 @@ func getByReflect(ctx context.Context, r *gRPCTestCaseRunner, fullName protorefl
503503
_ = cli.CloseSend()
504504

505505
if resp := resp.GetErrorResponse(); resp != nil {
506-
return nil, fmt.Errorf(resp.GetErrorMessage())
506+
return nil, fmt.Errorf("%s", resp.GetErrorMessage())
507507
}
508508

509509
fdresp := resp.GetFileDescriptorResponse()
@@ -685,7 +685,7 @@ func payloadFieldsVerify(md protoreflect.MethodDescriptor, caseName string, expe
685685
}
686686

687687
if msg != "" {
688-
return fmt.Errorf(msg)
688+
return fmt.Errorf("%s", msg)
689689
}
690690
return nil
691691
}

0 commit comments

Comments
 (0)