fix(interop) fix failing interop test with go client (#442)
* fix failing interop test * do not run go client when --use_tls is set
This commit is contained in:
@@ -215,11 +215,12 @@ where
|
||||
if let Some(echo_header) = echo_header {
|
||||
res.headers_mut()
|
||||
.insert("x-grpc-test-echo-initial", echo_header);
|
||||
Ok(res
|
||||
.map(|b| MergeTrailers::new(b, echo_trailer))
|
||||
.map(BoxBody::new))
|
||||
} else {
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
Ok(res
|
||||
.map(|b| MergeTrailers::new(b, echo_trailer))
|
||||
.map(BoxBody::new))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ esac
|
||||
|
||||
ARG="${1:-""}"
|
||||
|
||||
|
||||
(cd interop && cargo build --bins)
|
||||
|
||||
SERVER="interop/bin/server_${OS}_amd64${EXT}"
|
||||
@@ -57,3 +58,11 @@ sleep 1
|
||||
--test_case=empty_unary,large_unary,client_streaming,server_streaming,ping_pong,\
|
||||
empty_stream,status_code_and_message,special_status_message,unimplemented_method,\
|
||||
unimplemented_service,custom_metadata ${ARG}
|
||||
|
||||
if [ -z "${ARG}" ]; then
|
||||
# TODO: run all other test cases w/wo tls
|
||||
GO_CLIENT="interop/bin/client_${OS}_amd64${EXT}"
|
||||
|
||||
$GO_CLIENT --test_case="status_code_and_message"
|
||||
$GO_CLIENT --test_case="custom_metadata"
|
||||
fi
|
||||
Reference in New Issue
Block a user