diff --git a/consumer/interaction_v3.go b/consumer/interaction_v3.go index 4311da7c3..a9d852ed8 100644 --- a/consumer/interaction_v3.go +++ b/consumer/interaction_v3.go @@ -10,7 +10,11 @@ type InteractionV3 struct { // Given specifies a provider state, may be called multiple times. Optional. func (i *InteractionV3) Given(state models.ProviderStateV3) *InteractionV3 { - i.Interaction.interaction.GivenWithParameter(state.Name, state.Parameters) + if len(state.Parameters) == 0 { + i.Interaction.interaction.GivenWithParameter(state.Name, state.Parameters) + } else { + i.Interaction.interaction.Given(state.Name) + } return i }