Hi, we are setting up consumer driven testing in our pipelines, and we are trying to replicate a scenario where the provider test fails. I do this by simply asserting 1 equals 2 in the test function. But I dont understand why there is still an OK result being sent to the broker.
Kevin de Boer
09/06/2023, 2:04 PM
Strangely enough, if the test fails through an exception thrown by context.verifyInteraction(), we get a proper Failed result sent to the broker. However, if an exception is thrown by the assertion below it, we get an OK result sent to the broker...?