Skip to content

Commit

Permalink
chore: Fix pact verification request
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Aug 26, 2024
1 parent 089e864 commit 7475c0f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/pact_verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use tracing::{debug, error};
use pact_protobuf_plugin::built_info;
use pact_protobuf_plugin::server::ProtobufPactPlugin;

// We are not using provider states, so we define a executor that does nothing
// We are not using provider states, so we define an executor that does nothing
#[derive(Debug)]
struct NoopProviderStateExecutor { }

Expand Down Expand Up @@ -139,8 +139,14 @@ async fn init_plugin_request(request_message: &MessageRequest) -> (Status, (Cont
let mut buffer = BytesMut::new();
match response.get_ref().encode(&mut buffer) {
Ok(_) => {
(Status::Ok, (ContentType::new("application", "protobuf").with_params(("message", "InitPluginResponse")),
buffer.to_vec()))
(
Status::Ok,
(
ContentType::new("application", "protobuf")
.with_params(("message", ".io.pact.plugin.InitPluginResponse")),
buffer.to_vec()
)
)
}
Err(err) => {
error!("Failed to write response to buffer - {}", err);
Expand Down

0 comments on commit 7475c0f

Please sign in to comment.