You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup a gRPC consumer test, but have the JSON to configure the interaction to be invalid. Expect the test to fail with an invalid JSON error.
Actual behaviour
An error is logged about the JSON being invalid, but then the mock server is started anyway, which fails to start correctly. This hides the JSON error in the log output and the final error is:
2022-11-10T02:12:31.254037Z DEBUG ThreadId(01) pactffi_create_mock_server_for_transport{pact=PactHandle { pact_ref: 1 } addr=0x2b5f230 port=0 transport=0x2b69470 transport_config=0x2b5f980}: pact_plugin_driver::plugin_manager: Got response $StartMockServerResponse { response: Some(Error("Failed to start gRPC mock server: Pact file does not contain any Protobuf descriptors")) }
2022-11-10T02:12:31.254068Z ERROR ThreadId(01) pactffi_create_mock_server_for_transport{pact=PactHandle { pact_ref: 1 } addr=0x2b5f230 port=0 transport=0x2b69470 transport_config=0x2b5f980}: pact_ffi::mock_server: Failed to start mock server - Mock server failed to start: Failed to start gRPC mock server: Pact file does not contain any Protobuf descriptors
2022/11/10 13:12:31 unable to start plugin transport: unable to start the mock server
Software versions
go version
go env
Expected behaviour
Setup a gRPC consumer test, but have the JSON to configure the interaction to be invalid. Expect the test to fail with an invalid JSON error.
Actual behaviour
An error is logged about the JSON being invalid, but then the mock server is started anyway, which fails to start correctly. This hides the JSON error in the log output and the final error is:
Steps to reproduce
Any test should do it. Ie. break the JSON at https://github.com/pact-foundation/pact-go/blob/2.x.x/examples/grpc/grpc_consumer_test.go#L36
Relevent log files
The text was updated successfully, but these errors were encountered: