Closed Kyle-Cooley closed 1 year ago
Possible solution: Store the pointer for the response and use that to determine if the cache should be used or not.
hey @Kyle-Cooley - good catch; agreed on checking the pointer as you're proposing. Would you be up for submitting a PR?
Hello @onsi , yes, I will make a PR for it.
The following code does not work as expected when the first attempt does not succeed:
This appears to be caused by the use of a cached variable that is never updated after being set: https://github.com/onsi/gomega/blob/master/matchers/have_http_body_matcher.go#L76