Hey all, quick confirmation please for messages-...
# pact-go
s
Hey all, quick confirmation please for messages-pacts, Consumer test, I have set WithContent like this
"items": dsl.EachLike(map[string]interface{}{
"id":    "1270284",
"qty": dsl.Integer(),
}, 1),
and on Provider test, used the data for verification like
"data": {
"date": "2023-11-06",
"reference": "123",
"items": [
{
},
{
}
]
}
still test is passing. Shouldn't it fail the match? for items
m
can you please share the pact file?
note, for multi-line bodies of text, you can use the “code block” syntax to format it better (triple backtick ``` , or this button in the text box):
👍 1
s
thanks @Matt (pactflow.io / pact-js / pact-go) this is the contract json
m
How do you know the provider data is incorrect? Could you please set log level to DEBUG and share that?
s
on provider side, when below data was used, test is passing
Copy code
"data": {
    "date": "2023-11-06",
    "Reference": "123",
    "items": [
        {

        },
        {

        }
    ]
}
as the array is empty (incorrect) hoping the test to fail in this case?
m
Thanks. As per above, I’d like to see the DEBUG or even TRACE level logs to prove that