fix: missing return in invokeRequest for stream rpc (#206)
* fix: missing return in invokeRequest for stream rpc fix Got error when running the sample grpc testsuite file #200 Signed-off-by: Ink33 <Ink33@smlk.org> * re-order the test cases in .github/testing/core.yaml --------- Signed-off-by: Ink33 <Ink33@smlk.org> Co-authored-by: Rick <1450685+LinuxSuRen@users.noreply.github.com>
This commit is contained in:
parent
69e53b6e04
commit
ada9ca07e7
|
@ -5,16 +5,16 @@ name: atest
|
|||
api: |
|
||||
{{default "http://localhost:8080/server.Runner" (env "SERVER")}}
|
||||
items:
|
||||
- name: suites
|
||||
request:
|
||||
api: /GetSuites
|
||||
method: POST
|
||||
- name: createSuite
|
||||
request:
|
||||
api: /CreateTestSuite
|
||||
method: POST
|
||||
body: |
|
||||
{"name": "{{randAlpha 6}}"}
|
||||
- name: suites
|
||||
request:
|
||||
api: /GetSuites
|
||||
method: POST
|
||||
- name: suite
|
||||
request:
|
||||
api: /GetTestSuite
|
||||
|
|
|
@ -46,6 +46,7 @@ jobs:
|
|||
sudo atest service restart
|
||||
sudo atest service status
|
||||
atest run -p .github/testing/core.yaml --request-ignore-error --report md --report-file .github/workflows/report.md
|
||||
atest run -p sample/grpc-sample.yaml
|
||||
sudo atest service status
|
||||
|
||||
atest convert -p .github/testing/core.yaml --converter jmeter -t sample.jmx
|
||||
|
|
|
@ -129,7 +129,7 @@ func invokeRequest(ctx context.Context, md protoreflect.MethodDescriptor, payloa
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return buildResponses(resps)
|
||||
}
|
||||
request, err := getReqMessagePb(md, payload)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue