Skip to content

Commit

Permalink
fix: Provider state teardown calls were not being invoked when there …
Browse files Browse the repository at this point in the history
…are no provider states
  • Loading branch information
rholshausen committed May 31, 2023
1 parent 84c2acd commit 693418f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/pact_verifier/src/lib.rs
Expand Up @@ -434,7 +434,7 @@ async fn verify_interaction<'a, F: RequestFilterExecutor, S: ProviderStateExecut
.map_err(|e| (e, vec![]))
};

if !interaction.provider_states().is_empty() && provider_state_executor.teardown() {
if provider_state_executor.teardown() {
execute_provider_states(interaction, provider_state_executor, &client, false)
.await
.map_err(|e| (e, vec![], start.elapsed()))?;
Expand Down

0 comments on commit 693418f

Please sign in to comment.