Skip to content

Commit

Permalink
fix(pact_verifier): Fix missing PATCH version in plugin's version
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Aug 7, 2023
1 parent e6484f3 commit 6df8ce8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/pact_ffi/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ fn test_missing_plugin() {
pactffi_verifier_shutdown(handle);

expect!(result).to(be_equal_to(2));
expect!(output.to_string_lossy().contains("Verification execution failed: Plugin missing-csv:0.0 was not found")).to(be_true());
expect!(output.to_string_lossy().contains("Verification execution failed: Plugin missing-csv:0.0.3 was not found")).to(be_true());
}

// Issue #299
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ pub async fn verify_provider_async<F: RequestFilterExecutor, S: ProviderStateExe
info!("Pact file requires plugins, will load those now");
for plugin_details in pact.plugin_data() {
let version = plugin_details.version.split('.')
.take(2)
.take(3)
.join(".");
load_plugin(&PluginDependency {
name: plugin_details.name.clone(),
Expand Down

0 comments on commit 6df8ce8

Please sign in to comment.