Closed colmsnowplow closed 1 year ago
I kinda feel if you only want localstack to start once, then it shouldn't be managed as a cats-effect resource scoped to the Spec.
Agreed!
It would be great to figure out a pattern that we can re-use across all our repos. Because this requirement might come up again and again.
Indeed. We might need a Semaphore
and a var
with a counter.
OK bar what Ian mentioned, I think I've addressed it all now! Thanks for the feedback @benjben, shout if there's any more
And my 2c on the other convo - I think whatever we do with localstack, it should work smoothly for both when we want to run all the tests, and when we only want to run one.
I don't understand the patterns that well but I think my preferred design would:
KINESIS_ERROR_PROBABILITY
for tests on retries)After rebasing, it was simpler to just cherry-pick the commit that adds tests - closing this one.
I kinda feel if you only want localstack to start once, then it shouldn't be managed as a cats-effect resource scoped to the Spec.
@benjben I think you raise a very important point. It would be great to figure out a pattern that we can re-use across all our repos. Because this requirement might come up again and again.
This PR has followed the same pattern set out by the other snowplow repos and I think that's good enough for now.