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:
Ink33 2023-09-06 08:56:26 +08:00 committed by GitHub
parent 69e53b6e04
commit ada9ca07e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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 {